Display a datagrid allowing to easily modify and create objects
| Attribute Name | Description |
|---|---|
| model | Renderer model to use |
| property | Property of form holding the Datagrid object |
| styleId | id to give to the table element. If not set, an id is automatically generated |
| indexId | The name of the bean that will contain the index of the current bean in the collection during an iteration. |
| styleClass | css class to use to display the collection |
| selectionAllowed | Is selection of a row allowed ? Default : true |
| multipleSelectionAllowed | Is multiple selection of a row allowed ? Default : true |
The datagridColumn tag is used to specify the properties that must be displayed in a datagrid tag.
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.
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.