Hi, i'm new in icefaces so i have a problem and i hope you can help me.
I have a datatable with data (no problem here) but i need to put a red background colo to an specific row from java because it is suppose to be a restriction from a condition is there a way i can do that?
i got a table with 5 products and all of them have an expiration date so... 4 products are ok but one has expired 5 days ago so i need to color that row with red
Here, rowIndexVar is an index and rowStyleClass is a style class of current row. In your backing bean set expiredProductIndex to the index (zero-based) of row you want to color with red.
Joined: Nov 12, 2012
I was thinking something like that but doing something like this:
I get some data from a query from database so I'm getting this: 1 (true) or 0 (false)
In the bean class i will have a variable called expiredProduct and the get method is called isExpiredProduct
so the code could be:
you think this is ok?
Joined: Aug 31, 2012
If your row objects contain expiredProduct property, this seems ok.