I tried the following:

 <field property="name" depends="maxlength">
   <msg name="maxlength" key="error.name.overflow" />
   <arg name="maxlength" bundle="constraints" key="name.length" />
 </field>

Now I figured that this would cause the maxlength validator to get the value for maxlength from message resources, rather than hardcoding it with var, var-name and var-value tags. But it doesn't! It only uses this to pass to the {0} in the error message (in org.apache.struts.validator.FieldChecks.validateMaxLength, version 1.1.4):

 // No reference to resources at this point, only in the exception handler
 int max = Integer.parseInt(field.getVarValue("maxlength"));

Am I missing something?

- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to