org.apache.tapestry5.kaptcha.components
Class KaptchaField
java.lang.Object
org.apache.tapestry5.corelib.base.AbstractField
org.apache.tapestry5.kaptcha.components.KaptchaField
- All Implemented Interfaces:
- ClientElement, Field
@SupportsInformalParameters
@Import(stylesheet="kaptcha.css")
public class KaptchaField
- extends AbstractField
Field paired with a KaptchaImage
to ensure that the user has provided
the correct value.
- Since:
- 5.3
Method Summary |
boolean |
isRequired()
Returns false; most components do not support declarative validation. |
protected void |
processSubmission(String controlName)
Method implemented by subclasses to actually do the work of processing the submission of the form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KaptchaField
public KaptchaField()
isRequired
public boolean isRequired()
- Description copied from class:
AbstractField
- Returns false; most components do not support declarative validation.
- Specified by:
isRequired
in interface Field
- Overrides:
isRequired
in class AbstractField
- Returns:
- true if a non-blank value is required for the field
processSubmission
protected void processSubmission(String controlName)
- Description copied from class:
AbstractField
- Method implemented by subclasses to actually do the work of processing the submission of the form. The element's
controlName property will already have been set. This method is only invoked if the field is not
disabled
.
- Specified by:
processSubmission
in class AbstractField
- Parameters:
controlName
- the control name of the rendered element (used to find the correct parameter in the request)
Copyright © 2003-2011 The Apache Software Foundation.