You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by kewldude <pa...@yahoo.com> on 2007/08/19 07:01:40 UTC

customizing h:dataTable

Lets say I have a resultset of 10 items, I need to display them in a
dataTable, but I need to highlight rows 1,5 and 8...is that possible at all? 
-- 
View this message in context: http://www.nabble.com/customizing-h%3AdataTable-tf4292394.html#a12219471
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: customizing h:dataTable

Posted by Yaron Spektor <ya...@b6systems.com>.
If you know the lines that you would like to highlight, set a highlight
style in css and put it in rowClasses.
If not you can create this string on the fly.
E.g., "highlight,noHighlight, noHighlight, noHighlight, Highlight,
noHighlight, noHighlight, Highlight" following your example of rows 1,5
and 8 highlighted

Hope this helps,

Yaron 

-----Original Message-----
From: kewldude [mailto:paubengero@yahoo.com] 
Sent: Sunday, August 19, 2007 1:02 AM
To: users@myfaces.apache.org
Subject: customizing h:dataTable


Lets say I have a resultset of 10 items, I need to display them in a
dataTable, but I need to highlight rows 1,5 and 8...is that possible at
all? 
-- 
View this message in context:
http://www.nabble.com/customizing-h%3AdataTable-tf4292394.html#a12219471
Sent from the MyFaces - Users mailing list archive at Nabble.com.