Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to display multiple lines

 
Kamila Rutkowski
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18152
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Akaine Harga
Ranch Hand
Posts: 99
Java MyEclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as Tim Holloway said, h:dataTable or rich:dataTable would be the most basic and appropriate components for this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic