File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes How to change Style of a single Row in t:datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to change Style of a single Row in t:datatable" Watch "How to change Style of a single Row in t:datatable" New topic
Author

How to change Style of a single Row in t:datatable

Mario Luef
Greenhorn

Joined: Oct 05, 2011
Posts: 6

Hello again!

I have to make a "Sub-Header" in my datatable and so i tried to put an empty row in the table. It works, but
now i also have to change the Background of this row to darkgrey and this doesn't work. Tried to put an
outputvalue in the single cell with value " " giving it a CSS style but this doesnt work.

Any idea?

Thanks!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

I don't recommend playing those sort of games. The datamodel is supposed to be a DATA model, not a kludgy way of hacking the View.

There are JSF extension tagsets that can actually do sub-headings, RichFaces has one. It's a lot cleaner and more powerful.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
Don't get me started about those stupid light bulbs.
 
subject: How to change Style of a single Row in t:datatable
 
Similar Threads
Background Image Problem in External CSS
problem with prepared statement
Jquery: Target column text
JTextPane +insert text,image with style
Problem in Editing/Rendering a CheckBox in a JTable