HomePrev

For
org.mb.tapestry.base.ForBean
  Non-Visual Component
Description
Loops over a collection of source values. May also emulate an element (like an Any component). If this component is placed in a Form, it will automatically store the collection in Hidden fields so that the structure of the page is preserved during a rewind even if the values in the source change.
Parameters
nametypedirectionrequireddefault valuedescription
sourcejava.lang.Objectin   The source of values, a Java collection or array.  
listenerorg.apache.tapestry.IActionListenerin null 
formlessbooleanin false Determines whether to avoid creating hidden fields within a form.  
valuejava.lang.Objectcustom null If provided, then on each iteration, the value property is updated.  
indexintcustom 0 If provided, then the index of the loop is set on each iteration.  
elementjava.lang.Stringin templateTag If provided, then the Foreach creates an element wrapping its content. Informal parameters become attributes of the element.  
templateTagjava.lang.Stringauto null The tag with which the component was inserted in its parent template This parameter will be bound automatically by the framework.  
convertor ...rib.table.model.IPrimaryKeyConvertorauto null An interface defining how the items iterated upon by this component will be stored in the form as Hidden values. This interface allows only the primary key of the items to be stored, rather than the whole item.  
Allow body (rendered)
Allow informal parameters   
Reserved parameters   -
Toggle help

HomePrev