Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3267938
By: kiversen

In one of mine ColumnDecorator classes I need more than one property to handle
the decoration of the column.

As I understand the <display:column property="methodname"
.....decorator="some.decorator.class"/> grabs the methodName, uses the 
Reflection
api to actually grab the value from the method and passes it on to the decorator
class for the final finish / appearance.  Formatting a Date Object is quite
easy, as shown in one of the examples submitted with the displaytag distribution
and I have made severals myself, including displaying an image.

My requirements however is this: One column should display some text, along
with an image.

Piece of code from a table before using displaytag:
...
<td>
<bean:write name="element" property="name" />
<il:productViewer name="element" property="type" />
</td>
...

Meaning, within the <td></td> tag I write the name, then by using a taglib and
passing in the 'type' property I am returning html code for displaying the 
proper
image. Both name and image is displayed within one 'column'  How to solve this
with the <display:column> tag?

I need both the name and image within 1 column (as within <td></td>) not like
this:
<display:column property="name" ..../> 
<display:column property="imageName" ...
decorator="some.image.decorator.class/>

Actually I would like to pass in the object beeing iterated to some attribute
in the columntag.

Anyone with some good ideas?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=249318


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to