RE: Style for row in datatable

2006-03-24 Thread Lindholm, Greg
bject: Re: Style for row in datatable Is it possible to combine both rowStyleClass and rowClasses ?Basically, I want to have alternate colors for the rows (like red and blue), and a third color (yellow) only for one selected row ?Is it possible to do this ? Thanks in advance. On 3/22/06,

RE: Style for row in datatable

2006-03-23 Thread JeanClaude . Pace
Class attribute. Thanks again Jean "Lindholm, Greg" <[EMAIL PROTECTED]> 22/03/2006 19:20 Please respond to "MyFaces Discussion" To "MyFaces Discussion" cc Subject RE: Style for row in datatable Yes, it's EL so you can use any valid

Re: Style for row in datatable

2006-03-22 Thread Raj Rajendran
erty in your row object it doesn't have to bea displayed column.-Original Message- From: James Reynolds [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 22, 2006 1:08 PMTo: MyFaces DiscussionSubject: RE: Style for row in datatable So you have a column in your data that determines the

RE: Style for row in datatable

2006-03-22 Thread James Reynolds
Thanks Greg, you've made my day! -Original Message- From: Lindholm, Greg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 11:21 AM To: MyFaces Discussion Subject: RE: Style for row in datatable Yes, it's EL so you can use any valid expression. Also, you can test an

RE: Style for row in datatable

2006-03-22 Thread Lindholm, Greg
field? Such as: ... rowStyleClass="#{myRow.totalRevenue gt 0 ? 'BlackFontStyle':'RedFontStyle'}" ... -Original Message- From: Lindholm, Greg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 10:51 AM To: MyFaces Discussion Subject: RE: Style for row in datatab

RE: Style for row in datatable

2006-03-22 Thread James Reynolds
Class="#{myRow.totalRevenue gt 0 ? 'BlackFontStyle':'RedFontStyle'}" ... -Original Message- From: Lindholm, Greg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 10:51 AM To: MyFaces Discussion Subject: RE: Style for row in datatable Yes, it's easy using

RE: Style for row in datatable

2006-03-22 Thread Lindholm, Greg
Yes, it's easy using -Original Message- From: James Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 22, 2006 12:37 PM To: MyFaces Discussion Subject: RE: Style for row in datatable I have been interested in this as well. One suggestion that has been offered in the

RE: Style for row in datatable

2006-03-22 Thread James Reynolds
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