Check out the decorator examples (http://displaytag.sourceforge.net/1.2/tut_decorators.html), that is your best bet.
Another way to do it is to add the content of the cell manually, like so:
<display:column titleKey="something" media="html">
<c:out_of_property_here>
</display:column>
If I remember correctly, if my table was defined like:
<display:table name="test" requestURI="some_uri"
defaultsort="0" id="test" export="true" excludedParams="*" >
you would access the current element using test
, so if the object you are displaying has a property id
with a getter getId
, you would access the current object in the list by writing test.id
.
But I would try using a decorator first (you can add decorators per-column iirc), the second option is very messy.
Displaytag:
displaytag.sourceforge.net/1.2 – Immediatedisplaytag
tag and it is david who removed that tag from the question. Anyways does it make any senseMaybe you should ask someone who works on display tag?
In SO there are lots of question related toDisplaytag
. How could i know that the person who will try to answer don't even know displaytag and still want to answer. – Immediate