Please add this as a Jira issue. Sorry, this was my fault. I made field errors hold a List of errors instead of just one.
> -----Original Message----- > From: Francisco Hernandez [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 21, 2003 6:56 AM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] bug in controlheader.vm > > > I dont know when this change happened but fieldErrors can now > have more than one error per field and this was screwing up > my resource bundles, > anyways heres the fixed version of controlheader.vm > > > > #if( $stack.findValue("fieldErrors") ) > #set( $errors = > $stack.findValue("fieldErrors.get('$tag.Name')") ) > #if( $errors ) > <tr> > <td colspan="2" class="error"><span class="errorMessage"> > #foreach( $error in $errors ) > #set( $message = > $stack.findValue("getText('${error}')") ) > #if( $message && $message != "" ) > $message<br> > #else > $error<br> > #end > #end > </span></td> > </tr> > #end > #end > > #set( $labelValue = $stack.findValue("getText('$tag.Label')") > ) #if( !$labelValue ) #set( $labelValue = $tag.Label ) #end <tr> > <td align="right" valign="top"#if($error) > class="error"#end><label class="label">$!{labelValue}:</label></td> > <td#if($errors) class="error"#end> > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: VM Ware > With VMware you can run multiple operating systems on a > single machine. WITHOUT REBOOTING! Mix Linux / Windows / > Novell virtual machines at the same time. Free trial click > here:http://www.vmware.com/wl/offer/358/0 > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork