|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequirableField
Implemented by form components that can be marked as required. The form rewind will record validation errors for required fields for which a value was not submitted.
Method Summary | |
---|---|
void |
bind(IMarkupWriter writer,
IRequestCycle cycle)
Called on the field if the required field check succeeds. |
java.lang.String |
getRequiredMessage()
Returns the custom validation message pattern that overrides the default one. |
java.lang.String |
getSubmittedValue(IRequestCycle cycle)
Retrieves a simplified view of the value submitted for this component. |
boolean |
isRequired()
Indicates whether or not this field is required. |
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 |
---|
boolean isRequired()
java.lang.String getRequiredMessage()
MessageFormat
parameters, the context of which is specific to this field.
void bind(IMarkupWriter writer, IRequestCycle cycle) throws ValidatorException
ValidatorException
- if required field check fails.java.lang.String getSubmittedValue(IRequestCycle cycle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |