|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry.form.ValidatableFieldSupportImpl
public class ValidatableFieldSupportImpl
Default ValidatableFieldSupport implementation. This implementation generates calls to a
static javascript function during render if client-side validation is enabled.
| Constructor Summary | |
|---|---|
ValidatableFieldSupportImpl()
|
|
| Method Summary | |
|---|---|
protected 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,
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 Iterator getValidatorsIterator(ValidatableField component)
public void renderContributions(ValidatableField component,
IMarkupWriter writer,
IRequestCycle cycle)
ValidatableFieldSupport
renderContributions in interface ValidatableFieldSupportValidatableFieldSupport.renderContributions(ValidatableField, IMarkupWriter, IRequestCycle)
public void validate(ValidatableField component,
IMarkupWriter writer,
IRequestCycle cycle,
Object object)
throws ValidatorException
ValidatableFieldSupport
validate in interface ValidatableFieldSupportValidatorException - 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 | |||||||||