You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Rick Gruber-Riemer <ri...@vanosten.net> on 2005/08/25 14:50:46 UTC
outputText for abbr. text with ellipsis
Hej
In some columns of datatables I would like to abbreviate the text when the
text has more than x characters. Right now I have a special getter in the
beans to return an abbreviated string of a hardcoded length
( str.substring(0,abbreviationLength - 2) + " \u2026";). I do not like this,
because the length should be configured in the jsf-file by the page-designer.
=> Does someone know of a JSF-component like h:outputText, which has this
feature of abbreviating a text with ellipses? OR is there an obvious way to
do this?
Thanks ... Rick