Title: Some doubts about <display:column>

Hello, my name is Alejandro, I'm from Spain.
Currently I'm working with Struts technology and using displaytag to display my tables.

My problem is this:

I need to change the background color of a specific table cell.
I would like to change the parameter class of each column dinamically and assign to this parameter one different style from a css file. I've already done it but my problem is that the displaytag apply the first value that I assign to the class property and never change it, it applys that color to all the rows and I need to change the color for each column (what is easier) and for each row....i don't know if you get me....sorry by my english...This is the piece of the jsp file that I've written:

........
<display:table name="sessionScope.ListaProductoKey" align="center"
               id="listProd"
               pagesize="3"
               export="false"
               sort="page"
               requestURI="../../action/viewlistaproducto?paginate=true">

     <display:column><%=listProd_rowNum%></display:column>
     <display:column property="description" title="Descripción"/>
     <display:column class="<%=((es.princast.framework.carrito.business.vo.ProductoVO)listProd).getColor()%>"
                     property="basePrice"             
                     title="Precio unitario" sortable="true" headerClass="sortable"/>
</display:table>
......

It should be easy to do because it looks to me very usual and usegfull but I don't get the trick..
Can you help me????

Thanks a lot for your attention, Alejandro

Reply via email to