org.apache.tapestry.form
Interface ValidatableField

All Superinterfaces:
IComponent, IFormComponent, IRender, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
All Known Implementing Classes:
AbstractValidatableField, DatePicker, TextArea, TextField

public interface ValidatableField
extends IFormComponent

Implemented by form components that can need to be translated and validated. During render the translator is used to translated the value to a string. During rewind, the submitted value is translated back into an object by the translator and then validated.

Since:
4.0
Author:
Paul Ferraro

Method Summary
 Translator getTranslator()
          The Translator implementation used by this field.
 java.lang.Object getValidators()
          Coerced into an Iterator of Validators
 java.lang.Object readValue()
          Called during render to read the parameter that drives the value of is form component.
 void render(IMarkupWriter writer, IRequestCycle cycle, java.lang.String value)
          Renders this form component using the specified value.
 void writeValue(java.lang.Object value)
          Called during rewind to bind the successfully translated and validated value to the appropriate component parameter.
 
Methods inherited from interface org.apache.tapestry.form.IFormComponent
getClientId, getDisplayName, getForm, getName, isDisabled, setName
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Method Detail

getValidators

java.lang.Object getValidators()
Coerced into an Iterator of Validators


getTranslator

Translator getTranslator()
The Translator implementation used by this field.


render

void render(IMarkupWriter writer,
            IRequestCycle cycle,
            java.lang.String value)
Renders this form component using the specified value.


writeValue

void writeValue(java.lang.Object value)
Called during rewind to bind the successfully translated and validated value to the appropriate component parameter.


readValue

java.lang.Object readValue()
Called during render to read the parameter that drives the value of is form component.