|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic way to access a component which defines an HTML form (or, perhaps, other similar
constructs, such as a WML 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.
Field Summary | |
static java.lang.String |
ATTRIBUTE_NAME
Deprecated. To be removed; use TapestryUtils.FORM_ATTRIBUTE instead. |
Method Summary | |
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. |
Methods inherited from interface org.apache.tapestry.IAction |
getRequiresSession |
Methods inherited from interface org.apache.tapestry.IComponent |
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 |
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 |
Methods inherited from interface org.apache.tapestry.FormBehavior |
addDeferredRunnable, addEventHandler, addHiddenValue, addHiddenValue, getElementId, getElementId, isRewinding, prerenderField, registerForFocus, setEncodingType, wasPrerendered |
Field Detail |
public static final java.lang.String ATTRIBUTE_NAME
TapestryUtils.FORM_ATTRIBUTE
instead.
Method Detail |
public void rewind(IMarkupWriter writer, IRequestCycle cycle)
IRequestCycle
to allow a form that uses the direct service, to respond
to the form submission.
public java.lang.String getName()
a field's clientId property
.
public IValidationDelegate getDelegate()
public boolean isClientValidationEnabled()
public 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.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |