Tuesday 15 February 2011

html - can we use rowspan and colspan in displaytag? -


I have to create a table, which is structured like this

 | ------ -------------------------- | |  col1  |  col2  |  col3  |  col4  | | | |  Col3.1  |  Col3.2  | | | ---- | ---- | -------- | -------- | ---- | | ---- | ---- | -------- | -------- | ---- | 

Is it possible to create such a datagrid using the display tag?

Check out Decorator Example (), this is your best bet.

Another way to do this is to manually add the contents of a cell, such as:

   

If I miss the correct way, then my table was defined as:

  & lt; Display: table name = "test" requesturI = "some_uri" defaultsort = "0" id = "test" export = "right" excluded parachum = "*" & gt;  

You can use the current element using test , so if the object you showed is a multiplier id You can enter the current object list by typing a getter id , you test.id .

But I try to use a decorator first (you can add decorations per iirc), the second option is very messy.


No comments:

Post a Comment