Messages should be evaluated / localized before they are added to the message maps. The validation framework does this already.
> -----Original Message----- > From: Francisco Hernandez [mailto:[EMAIL PROTECTED] > Sent: Monday, November 17, 2003 11:08 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] use getText to resolve errors in > controlheader.vm > > > controlheader.vm currently doesnt resolve errors using > getText, below is > the modified vm > > (PS: Jira is down so I couldnt post bug..) > > controlheader.vm > > ## Only show message if errors are available. > ## This will be done if ActionFormSupport is used. > > #if( $fieldErrors.get($parameters.name) ) > #set ($errors = $fieldErrors.get($parameters.name)) > #foreach ($error in $fieldErrors.get($parameters.name)) > <tr> > #if ($parameters.labelposition == 'top') > <td align="left" valign="top" colspan="2"> > #else > <td align="center" valign="top" colspan="2"> > #end > <span class="errorMessage"> > #set( $message = > $stack.findValue("getText('${error}')") ) > #if( $message && $message != "" ) > $message<br> > #else > $!error<br> > #end > </span> > </td> > </tr> > #end > #end > > ## if the label position is top, > ## then give the label it's own row in the table > > <tr> > #if ($parameters.labelposition == 'top') > <td align="left" valign="top" colspan="2"> > #else > <td align="right" valign="top"> > #end > > #if ($errors) > <span class="errorLabel"> > #else > <span class="label"> > #end > > #if ($parameters.label) > $parameters.label: > #end > </span> > </td> > > ## add the extra row > #if ($parameters.labelposition == 'top') > </tr> > <tr> > #end > <td> > > > > > ------------------------------------------------------- > This SF. Net email is sponsored by: GoToMyPC > GoToMyPC is the fast, easy and secure way to access your > computer from any Web browser or wireless device. Click here > to Try it Free! > https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/ g22lp.tmpl _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork