public interface IForm extends IAction, FormBehavior
Go
). This interface exists so that the
IRequestCycle
can invoke the rewind(IMarkupWriter, IRequestCycle)
method (which
is used to deal with a Form that uses the direct service). In release 1.0.5, more responsibility
for forms was moved here.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTE_NAME
Deprecated.
To be removed; use
TapestryUtils.FORM_ATTRIBUTE instead. |
Modifier and Type | Method and Description |
---|---|
IValidationDelegate |
getDelegate()
Returns the validation delegate for the form.
|
boolean |
getFocus()
Returns true if the form should support automatic field focus (that is, adding JavaScript to
position the cursor into the first field of the form, automatically).
|
java.lang.String |
getName()
Returns the name of the form.
|
boolean |
isClientValidationEnabled()
Indicates whether or not client-side validation will be generated during render.
|
void |
rewind(IMarkupWriter writer,
IRequestCycle cycle)
Invoked by the
IRequestCycle to allow a form that uses the direct service, to respond
to the form submission. |
getRequiresSession
addAsset, 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, setProperty
addDeferredRunnable, addEventHandler, addHiddenValue, addHiddenValue, getElementId, getElementId, isRewinding, prerenderField, registerForFocus, setEncodingType, wasPrerendered
static final java.lang.String ATTRIBUTE_NAME
TapestryUtils.FORM_ATTRIBUTE
instead.void rewind(IMarkupWriter writer, IRequestCycle cycle)
IRequestCycle
to allow a form that uses the direct service, to respond
to the form submission.java.lang.String getName()
a field's clientId property
.IValidationDelegate getDelegate()
boolean isClientValidationEnabled()
boolean getFocus()
Body
component. When a
single page contains multiple Forms, only the first Form that renders will get field focus;
by setting the Form's focus parameter to false, it is possible to control which Form gets
focus.