Nicola Benaglia wrote on Jul 21, 2010 13:03:
So there's no way to colour my column cells under some circumstances?
For an ugly workaround, use two cells with EL in rendered attribute and fixed style. It will be fixed in Seam 3 ;-)
Hi,
can you please post a code example?
instead of
<e:cell value="#{employee.name}" style="xls-font-size: 8; xls-font-color:#{employee.resigned ? 'black' : 'red' }"/>
something like
<e:cell rendered="#{employee.resigned}" value="#{employee.name}" style="xls-font-size: 8; xls-font-color:'black'"/> <e:cell rendered="#{not employee.resigned}" value="#{employee.name}" style="xls-font-size: 8; xls-font-color:'red'"/>