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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to