
19 Apr
2013
19 Apr
'13
9:12 p.m.
Hi all, I've written a new filter function called trim. It returns the first part of a value up to the first occurance of a separator. If the separator is not found it just returns the value. Example: maybe you have a values like this destination=München;Landsberg;Augsburg;Ammersee destination=Kaufbeuren;Neugablonz;Mauerstetten;Pforzen and you want just the first part "München", or "Kaufbeuren" '${destination|trim:;}' will do the trick. with destination=München/Landsberg/Augsburg/Ammersee destination=Kaufbeuren/Neugablonz/Mauerstetten/Pforzen use '${destination|trim:/}' Find attached the new TrimFilter.java a diff for ValueBuilder.java Ciao, Franco