StringTrimConverter

This converter is useful, if you have in DB very long string and you do not want to send to the browser the whole string, just the beginning of a certain length. E.g. when you have to display such string in a listbox, you may just type

<listcell label="@{listEach.text,save=false,converter=StringTrimConverter}" />

which display maximum of 128 characters by default. You may change it by:

<listcell label="@{listEach.text,save=false,converter=StringTrimConverter,maxLength=60}" />

Released under the Poetic License. Post a comment here or under my blog post, if you have some suggestion. Thanks.