This tag allows partial validation and model update. Components will be validated and updated only if either a child-component of this form caused the submit of the form, or an extended commandLink or commandButton with the actionFor attribute set to the client-id of this component was used. There can be several comma-separated entries in the actionFor attribute with this, it's possible to validate and update more than one subForm at once.

Main attributes

actionFor - with this attribute, it's possible to validate and update more than one subForm at once.
preserveSubmittedValues - if true means not keeping any entered value if submitted another subform.

Sample Usage

<h:form>
...
<t:subForm id="subFormId1">

</t:subForm>
<t:subForm id="subFormId2">

</t:subForm>

<t:commandButton value="Submit subform1" actionFor="subFormId1"/>
...

</h:form>

SubForm (last edited 2009-09-20 23:01:17 by localhost)