@SupportsInformalParameters @Import(stylesheet="kaptcha.css") public class KaptchaField extends AbstractField
KaptchaImage
to ensure that the user has provided
the correct value. Renders a class attribute of "form-control", which can be extended
via the class informal attribute.Name | Type | Flags | Default | Default Prefix |
---|---|---|---|---|
image | org. | Required | component | |
The image output for this field. The image will display a distorted text string. The user must decode the distorted text and enter the same value. | ||||
visible | boolean | Since 5.3 | symbol: | prop |
Controls whether the field is rendered like a password field (false) or like a normal text field (true, the factory default). |
clientId, cssClass, decorator, defaultProvider, disabled, environment, fieldValidationSupport, formSupport, javaScriptSupport, label, request, resources, validationTracker
Constructor and Description |
---|
KaptchaField() |
Modifier and Type | Method and Description |
---|---|
boolean |
isRequired()
Always required.
|
protected void |
processSubmission(String controlName)
Method implemented by subclasses to actually do the work of processing the submission of the form.
|
decorateInsideField, getClientId, getControlName, getLabel, isDisabled, putPropertyNameIntoBeanValidationContext, removePropertyNameFromBeanValidationContext, setDecorator, setFormSupport
public KaptchaField()
public boolean isRequired()
isRequired
in interface Field
isRequired
in class AbstractField
protected void processSubmission(String controlName)
AbstractField
disabled
.processSubmission
in class AbstractField
controlName
- the control name of the rendered element (used to find the correct parameter in the request)Copyright © 2003-2013 The Apache Software Foundation.