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,
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
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
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
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
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
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
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
8 matches
Mail list logo