Hi,
I hope I'm not overlooking something too obvious here. I am trying to set the styleClass of a tablecell on the basis of the data contained in that cell.
For that i got the displaytag-york version, which provides implicit objects. What i did was this:
<display:table id="testit" bgcolor="#eeeeee" width="100%" name="services" scope="session" pagesize="20">
<display:column property="hostName" title="Host Name" sort="true"group="1"/>
<display:column property="serviceDescription" title="Service
Description"sort="true"/>


<display:column styleClass="<%=((Service)testit).getStatus()%>" property="status" sort="true"/>

<display:column property="retryNum" sort="true"/>
<display:column property="pluginOutput" />
</display:table>

Unfortunately this dind't work, i alwys got the same class for alle td objects(i guess the one of the last row). My completely unqualified guess is, that this is due to the non-iterating nature of the tag and the property gets by the next row overwritten.
Is there any way I can accomplish what I want(setting the styleClass based on a cells content). As far as i understand, i decorator wouldn't help me anything, since it can only "decorate" inside the cell.
Thanks in advance
with kind regards
Bernhard Albler


--
Es gen�gt nicht, keine Gedanken zu haben. Man muss auch unf�hig sein, sie auszudr�cken.
--Karl Kraus




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to