ASP. the DataGrid in. NET is very convenient and flexible. During this time, I wrote a grid implementation for JSP by referring to the DataGrid Interface UI of for webwork. In my opinion, in terms of usage, the DataGrid implemented by TAG is different from that implemented by ASP. net DataGrid is not inferior in terms of flexibility or scalability.
The following is my grid implementation method.
<Cos: DataGrid name = "gridtest" value = "listobj" border = "1" cellspacing = "12">
<Cos: Template headtext = "template column" headstyle = "background-color: #66 CCFF; cursor: Hand">
<Cos: inputtext name = "timezone" value = "name"/> </TD>
</COS: Template>
<Cos: column datafield = "ID" headtext = "no." width = "200" align = "right" style = "background-color: #66 CCFF; cursor: hand "> </COS: column>
<Cos: column datafield = "name" headtext = "name"> </COS: column>
</COS: DataGrid>
Compared with the. NET DataGrid, I only define two types of columns, template column and binding column. The template column can be placed in any other Interface UI.
The value of a column is specified by the value attribute. Because it is the sum of values with webwork, the system first searches for the value type in ognl in webwork. The value type must be collection. <?>, Because beanuils is used for values, the elements in the collection can contain multiple types.
Currently, no paging controls are added.