I am using primefaces datatable to show some data and I would like to limit the text shown to the user. I have a description that contains hundreds of lines, but I don’t want to show more than 50 characters in the datatable before the user taps that row. How can I do this? I searched the JSF Api, but no luck.
Share
Inspired by this answer you could use the JSTL function
substringfor this purpose: