Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes setting Column width for Datatable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "setting Column width for Datatable" Watch "setting Column width for Datatable" New topic
Author

setting Column width for Datatable

Varshini Priya
Ranch Hand

Joined: Feb 17, 2008
Posts: 93

Hi All,

Need some help in setting the column width for the datatable. However, the datatable width does not seem to be uniform.The width of the column in the datatable, seems to vary depending on the column header length. please refer the code below.




In the above case, the column header value length 'View Sales History/Forecast' seems to be large and hence the column width also seems to expand depending on the column header text value. Can you please let me know if there is any way to actually maintain uniformity in the column width and that not depend on the column header text value.

In case if the column header text length is too large, is there a way to maintain uniformity in the column width ?? please Assist. Thanks in Advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: setting Column width for Datatable
 
Similar Threads
setting Column width for primefaces datatable
Sorting is not working in my JSF PrimeFaces Datatable and blank (empty) rows are displayed filtering
Presenting variable number of columns with primefaces datatable
<p:datatable scrollable="true"> not working
Unable to populate values obtained from ajax call using PrimeFaces