Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Niall Pemberton
On 8/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I tried the following: 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 o

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
iling List Subject: Re: I can't put 'maxlength' validator values in my .properties file? David Friedman wrote: > I think you need to have at least Struts v1.2.8 unless you manually upgraded > the Commons Validator jar up to version 1.2.0. If I understand correctly, > va

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml fi

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml fi

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
-- From: Scott Van Wart [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 16, 2006 1:04 PM To: user@struts.apache.org Subject: I can't put 'maxlength' validator values in my .properties file? I tried the following: Now I figured that this would cause the ma

I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
I tried the following: 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 (i