im using JSF for J2EE projet and im looking how to limit the numbers of characters in a datatable column (h:colum; p:column). Thanks for your help and have a nice day.
1 Answer
I guess you want that large text don't break in new row. My recommendation is use css:
<p:column headerText="My column" styleClass="single-line"> <h:outputText value="#{largeTextProperty}" /> </p:column> .single-line { text-wrap: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 1 Comment
Kukeltje
Thanks for the answer. Finding 'duplicates' is good practice in Stackoverflow to prevent fragmentation. See stackoverflow.com/questions/9789723/…