struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Łukasz Lenart <lukasz.len...@googlemail.com>
Subject Re: conversion error repopulation not working
Date Thu, 31 May 2012 13:07:51 GMT
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/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message