hi everyone,
My team has an interesting design problem for the displaytag community.
What we are trying to accomplish is to render a table with 31 columns, where
columns 1 through 17 render on a first 'row' and columns 18 through 31
render on a second 'row', nested in a hidden div.
So, when the user hits our page, they see several first 'rows' rendered. We
then have a button-like trigger for each row that calls some js to unhide
the second 'row' div.
Through experimentation, it seems that displaytag does not allow html to be
embedded between display:columns. So, the following seems to ignore the
<div> tag:
<display:table (some params) >
<display:column (some params) />
<display:column (some params) />
<div (with hidden style) >
<display:column (some params) />
<display:column (some params) />
</div>
</display:table>
Next, we tried using a TableDecorator to access the actual <tr> and <td>
tags of the output table. I thought a good approach here might be to get at
the actual pre-rendered HTML at the 17th <td>, put in a <br> and <div>
manually. However, looking at TableDecorator->tableModel only seems to yield
object notation and not editable HTML.
What we are trying to avoid at this point is to have a javascript onload
call to snoop through the table rendered by displaytag and manually add the
hidden div stuff.
What am I missing here? Is there an elegant way for displaytag to wrap a
long row, putting half of it in a hidden div?
Thanks so much for your consideration!
--
View this message in context:
http://www.nabble.com/Displaytag-table-wrapping-%2B-hidden-div-tp18324348p18324348.html
Sent from the DisplayTag - General mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user