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

Reply via email to