This works nicely. Thanks! Cheers, J.
On Thu, May 31, 2012 at 3:07 PM, Łukasz Lenart <lukasz.len...@googlemail.com > wrote: > Can be reduced to this: > > public String getFormatted(String key, String fieldName, List<?> args) { > if (getFieldErrors().isEmpty()) { > return getText(key, args); > } else { > return > ActionContext.getContext().getValueStack().findString(defaultValue); > } > } > > and it works just for one field ;-) There should check if there is a > error for given fieldName > > > Regards > -- > Łukasz > mobile +48 606 323 122 http://www.lenart.org.pl/ > Warszawa JUG conference - Confitura http://confitura.pl/ >