struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Garcia" <jogaco...@gmail.com>
Subject Re: conversion error repopulation not working
Date Thu, 31 May 2012 13:51:48 GMT
This works nicely.
Thanks!

Cheers,
J.

On Thu, May 31, 2012 at 3:07 PM, Łukasz Lenart <lukasz.lenart@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/
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message