struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <li...@raibledesigns.com>
Subject Re: [Validator] maxlength JavaScript not generated
Date Wed, 09 Mar 2005 23:59:43 GMT
Thanks for confirming I wasn't crazy Bill.  It turned out that my 
<html:javascript> tag has a "page" attribute defined and I was missing 
page="1" for this particular field.

Thanks,

Matt

On Mar 8, 2005, at 6:58 PM, Bill Siggelkow wrote:

> It should be ... I just looked at the latest build and the JS function 
> is defined in the validator-rules.xml and the function itself is 
> located in my commons-1.1.4 jar in the maven repository.
>
> On 2005-03-08 18:26:23 -0500, Matt Raible <lists@raibledesigns.com> 
> said:
>
>> I coulda sworn that JavaScript was generated for maxlength validation 
>> rules, but in my current App (Struts 1.2.4), they don't show up.
>> In validation.xml, I have:
>>              <field property="outage.log" depends="maxlength">
>>                  <arg0 key="outageForm.outage.log"/>
>>                  <arg1 name="maxlength" key="${var:maxlength}" 
>> resource="false"/>
>>                  <var>
>>                      <var-name>maxlength</var-name>
>>                      <var-value>1800</var-value>
>>                  </var>
>>              </field>
>> The JavaScript that's generated for it is:
>>      function outageForm_maxlength () {
>>      }
>> And here's my field:
>> <html:textarea property="outage.log" styleId="outage.log"
>>      styleClass="comments" cols="40" rows="5" style="height: 80px"/>
>> Server-side validation works fine.
>> Thanks,
>> Matt
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message