> Hi. I'm trying to find out whether it is possible using 
> displaytag to change the background colour of a table td cell 
> based on whether the content is positive or negative. The 
> sort of thing I am thinking of can be seen at: 
> http://www.houseofmoran.com/displaytag/ideal.html
> 
> On that page I am changing the class of the td. An 
> alternative is to wrap a span around the value (which I think 
> could be done using a ColumnDecorator, yes?) An example of this: 
> http://www.houseofmoran.com/displaytag/ok.html
> 
> So, is it possible to do ideal.html using displaytag? If not, 
> can anyone confirm that ok.html is possible? It would be very 
> helpful if someone could suggest some css to make ok.html 
> look like ideal.html, but that's an added extra :-)

<display:table id="row" name="someList">
<display:column title="Price">
<span class="<%=(((Something)row).getPrice() > 0) ?
"positive":"negative" %>"><%=((Something)row).getPrice()%></span>
</display:column>
<display:column title="Name" property="name"/>
</display:table>


I don't see any difference in the way that ideal and ok display.


> 
> Thanks,
> 
> --
> Mike
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign 
> up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell 
> to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> displaytag-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to