I have been interested in this as well. One suggestion that has been offered in the past is to bind the dataTable row styles to a bean value. The bean value would be a comma delimited string of class names, one for each row. Obviously, you would need to build that list dynamically based on some aspect of your data. I haven't tried it yet so I can't provide any feedback on its success, but maybe the idea will help you.
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 5:19 AM To: users@myfaces.apache.org Subject: Style for row in datatable Hi, Is it possible to apply a style to a row in a datatable dynamically? For example, I might have a datatable showing a list of numbers and I would want the rows containing negative numbers to be red and the positive numbers to be blue. I want to apply the style to the entire row (<tr>) not just the contents. I believe this cannot be achieved using the rowClasses attribute of the datatable. Is there any way of achieving this? Thanks Jean