aspose file tools*
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: 16250
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Akaine Harga
Ranch Hand

Joined: Nov 03, 2009
Posts: 80

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