• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multilines in primefaces datatable and selectonemenu

 
Raymond Chiu Wing Hing
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now I am going to improve the website layout that done on primefaces.
I find that some long texts in datatable or selectonemenu that make it not very good in layout. Is it possible to have auto wrap with multiple lines??
 
Tim Holloway
Bartender
Posts: 18412
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Raymond!

SelectOneMenu is the JSF wrapper for the HTML SELECT/OPTION tags and I don't believe that they can handle multi-line text.

The dataTable tag is the JSF wrapper for HTML TABLE and cells in an HTML table will automatically wrap text onto as many lines as needed, unless you have CSS applied that prevents it.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!