0

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
  • Thanks my dear, sorry for the duplicate Question. Commented Nov 16, 2017 at 10:04

1 Answer 1

0

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; } 
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for the answer. Finding 'duplicates' is good practice in Stackoverflow to prevent fragmentation. See stackoverflow.com/questions/9789723/…

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.