This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.