wood burning stoves 2.0
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to display multiple lines" Watch "how to display multiple lines" New topic

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: 17257

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 agree. Here's the link: http://aspose.com/file-tools
subject: how to display multiple lines
It's not a secret anymore!