Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multilines in primefaces datatable and selectonemenu  RSS feed

 
Raymond Chiu Wing Hing
Greenhorn
Posts: 4
  • 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: 18531
61
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.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!