DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23034>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23034 maxlength not reading from resource bundle by default Summary: maxlength not reading from resource bundle by default Product: Struts Version: 1.1 Final Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Validator Framework AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the following maxlength check on a field in my app: <field property="description" depends="maxlength"> <arg0 key="label.bin.title"/> <arg1 name="maxlength" key="${var:maxlength}" resource="false"/> <var> <var-name>maxlength</var-name> <var-value>2000</var-value> </var> </field> When the field validates I get this message: null can not be greater than 2000 characters. When I add resource="true" to the <arg0> element like this: <arg0 key="label.bin.title" resource="true"/> I get the correct message: Bin Title can not be greater than 2000 characters. The resource attribute of the arg0 element should default to true; I should not have to specify it. This behavior is stated as follows in the validator developer's guide, "By default the arg0-arg3 elements will try to look up the key attribute in the message resources". The guide I am referring to can be found here: http://jakarta.apache.org/struts/userGuide/dev_validator.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
