|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.form.ValidatableFieldSupportImpl
Default VadidatableFieldSupport
implementation. This implementation generates calls to a
static javascript function during render if client-side validation is enabled.
Constructor Summary | |
ValidatableFieldSupportImpl()
|
Method Summary | |
protected java.util.Iterator |
getValidatorsIterator(ValidatableField component)
|
boolean |
isRequired(ValidatableField field)
Returns true if this component is required. |
void |
renderContributions(ValidatableField component,
IMarkupWriter writer,
IRequestCycle cycle)
Called during render of the specified component. |
void |
setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
|
void |
setValueConverter(ValueConverter converter)
|
void |
validate(ValidatableField component,
IMarkupWriter writer,
IRequestCycle cycle,
java.lang.Object object)
Called during rewind of the specified component. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidatableFieldSupportImpl()
Method Detail |
public void setValueConverter(ValueConverter converter)
public void setThreadLocale(org.apache.hivemind.service.ThreadLocale threadLocale)
protected java.util.Iterator getValidatorsIterator(ValidatableField component)
public void renderContributions(ValidatableField component, IMarkupWriter writer, IRequestCycle cycle)
ValidatableFieldSupport
renderContributions
in interface ValidatableFieldSupport
org.apache.tapestry.form.ValidatableFieldSupport#renderValidatorContributions(org.apache.tapestry.form.ValidatableField, org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)
public void validate(ValidatableField component, IMarkupWriter writer, IRequestCycle cycle, java.lang.Object object) throws ValidatorException
ValidatableFieldSupport
validate
in interface ValidatableFieldSupport
ValidatorException
- if validation failsValidatableFieldSupport.validate(org.apache.tapestry.form.ValidatableField, org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle, java.lang.Object)
public boolean isRequired(ValidatableField field)
ValidatableFieldSupport
isRequired
in interface ValidatableFieldSupport
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |