contrib:Choose Component Index contrib:FormTable

contrib:FormConditional
org.apache.tapestry.contrib.form.FormConditional
Non Visual Component
 

Description
FormConditional is a variant of Conditional designed to be used in a Form, similar to the relationship between Foreach and ListEdit. It is used to guarantee that the data will be the same during rendering and rewind when a form is submitted avoiding a stale link.
On render, FormConditional reads condition parameter, stores it into a hidden field, and could render or not according to condition value. On rewind, the FormConditional ignores condition parameter, reads the stored value, and could render or not matching previous render.

See Also
Conditional, Form
Parameters
Name Type Direction Required Default Description
condition boolean in yes   The condition to evaluate.
element String in no   The element to emulate.
listener String in no   The listener, informed at render.
conditionValue boolean custom no   The value of the condition. During render this is obtained from the condition parameter. During rewind it is the submitted condition.

Body: rendered
Informal parameters: allowed
Reserved parameters: invert

Examples

This example is under construction.


contrib:Choose Component Index contrib:FormTable