datagrid

Display a datagrid allowing to easily modify and create objects

Attributes

Attribute NameDescription
modelRenderer model to use
propertyProperty of form holding the Datagrid object
styleIdid to give to the table element. If not set, an id is automatically generated
indexIdThe name of the bean that will contain the index of the current bean in the collection during an iteration.
styleClasscss class to use to display the collection
selectionAllowedIs selection of a row allowed ? Default : true
multipleSelectionAllowedIs multiple selection of a row allowed ? Default : true

datagridColumn

The datagridColumn tag is used to specify the properties that must be displayed in a datagrid tag.

Attributes

Attribute NameDescription
propertyName of the property of the beans to display
titleKey of the title to display for this property

datagridCheckbox

The datagridCheckbox tag is used to specify a boolean property that must be displayed in a datagrid tag.

Note : as HTML doest not send back information when a checkbox is not checked, you need to implement the reset(...) method of the Struts form bean and call the method preUpdate() on the datagrid object.

Attributes

Attribute NameDescription
propertyName of the boolean property of the beans to display
titleKey of the title to display for this property

datagridSelect

The datagridSelect tag is used to specify a property which can be selected in a drop down box.

Note : use the <layout:option> tags to populate the drop down box.

Attributes

Attribute NameDescription
propertyName of the property of the beans to display
titleKey of the title to display for this property

datagridText

The datagridText tag behaves like the datagridColumn tag expects that it has an additional Javascript handler attribute named onnewrow. When a new row is added to the datagrid, the Javascript handler code is executed, allowing custom initialization of the column.

Attributes

Attribute NameDescription
onnewrowJavascript code to execute to initialize new columns when a new line is added to the datagrid