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