public abstract class ValidatingTextField extends org.apache.tapestry.valid.ValidField
| Parameter | Type | Read / Write | Required | Default | Description |
| text | java.lang.String | R / W | yes | The text inside the text field.
When the form is submitted, the binding is only updated if the value is valid. |
|
| minimumLength | int | R | no | 0 | The minimum length (number of characters read) for the field. The value provided in the
request is trimmed of leading and trailing whitespace.
If a field is not required and no value is given, then minimumLength is ignored. Minimum length only applies if some non-null value is given. |
| required | boolean | R | no | false | If true, then a non-null value must be provided. A value consisting only of whitespace is considered null. |
| displayName | String | R | yes | A textual name for the field that is used when formulating error messages. |
May not have a body. May have informal parameters.
ValidField| Constructor and Description |
|---|
ValidatingTextField() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getMinimumLength() |
abstract java.lang.String |
getText() |
org.apache.tapestry.valid.IValidator |
getValidator()
Overrides
ValidField.getValidator()to construct a validator on the fly. |
java.lang.Object |
getValue() |
abstract boolean |
isRequired() |
abstract void |
setText(java.lang.String value) |
void |
setValue(java.lang.Object value) |
getDisplayName, isDisabled, isHidden, readValue, renderFormComponent, rewindFormComponent, updateValuegetAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderIdAttribute, setClientId, setForm, setName, setNameaddAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setPropertypublic ValidatingTextField()
public abstract int getMinimumLength()
public abstract boolean isRequired()
isRequired in interface org.apache.tapestry.form.IFormComponentisRequired in class org.apache.tapestry.form.AbstractFormComponentpublic abstract java.lang.String getText()
public abstract void setText(java.lang.String value)
public java.lang.Object getValue()
getValue in class org.apache.tapestry.valid.ValidFieldpublic void setValue(java.lang.Object value)
setValue in class org.apache.tapestry.valid.ValidFieldpublic org.apache.tapestry.valid.IValidator getValidator()
ValidField.getValidator()to construct a validator on the fly.getValidator in class org.apache.tapestry.valid.ValidField