wood burning stoves 2.0*
The moose likes JSF and the fly likes how to show a row of data table in two rows? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to show a row of data table in two rows?" Watch "how to show a row of data table in two rows?" New topic
Author

how to show a row of data table in two rows?

Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 112
Hello All,
I have a datatable which shows a list of objects. Each object is represented by a row of datatable's row. But the attributes of a row are about 20 which goes out side my display area. I want to show them inside the display area. On solution is that, I put css overflow attribute. But I do not want the sliders. So is there any way to show the long rows in 2 rows or more so that I am able to have all the content in my display area.


Regards, Fawad Ali.
Software Engineer, Stafona Inc. - My Blog
Vishal Chaudhry
Greenhorn

Joined: Dec 16, 2009
Posts: 7
Try specifying width on each outputText using stylesheet. This should limit the width and the text would be displayed in more than one line. Another thing which you can do is combine output from more than one field in the same column. This way you can reduce the width of the disaplyed row by increasing the height of each row.
Fawad Ali
Ranch Hand

Joined: Dec 28, 2009
Posts: 112
Thanks. That helped alot.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to show a row of data table in two rows?
 
Similar Threads
Control the execution order in jsf
Table
help in radio button
Moving table row up/down?
Getting the line-number of a text