This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes how to display multiple lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "how to display multiple lines" Watch "how to display multiple lines" New topic
Author

how to display multiple lines

Kamila Rutkowski
Ranch Hand

Joined: Sep 22, 2009
Posts: 37
I want to display multiple String lines (placed in a ArrayList as a backing bean property) on my JSF page. How can I do this? which JSF component suits my need? Please help me.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17033
    
  26

In stock JSF, that pretty much means wrapping the ArrayList in a ListModel and rendering in a DataTable.

RichFaces has some extra tags designed to display multiple list items such as bullet lists.


An IDE is no substitute for an Intelligent Developer.
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 97

as Tim Holloway said, h:dataTable or rich:dataTable would be the most basic and appropriate components for this


Wanna install linux on a vacuum cleaner. Could anyone tell me which distro sucks better?
willCodeForFood("Java,PHP,C#,XML,VBS,XHTML,CSS,JavaScript,SQL"); //always looking for job opportunities in AU/NZ/US/CA/Europe :P
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: how to display multiple lines
 
It's not a secret anymore!