You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ne...@srb-intl.com on 2003/04/22 21:27:30 UTC
validator: range deprecated use intRange()
Guys,
what about latest nightly build jakarta-struts-20030422.zip validator?
I am validating one field in form and JS fails: 'intRange' is undefined.
exactly at line:
function validateIntRange(form) {
...
>>> oRange = new intRange();
for (x in oRange) {
...
I have digged inside validator code and discovered that there is no declaration for intRange.
Also I have noted message - 'range is deprecated use intRange instead' and <html:javascript> tag
had outputted to my page:
function range() {
this.aa = new Array("v...
}
is this should be or smth is wrong in my side?
Here comes my validator setup (not much here):
<form-validation>
<formset>
<form name="timesheetReport">
<field
property="value(statusToDay)"
depends="integer,range">
<arg0 key="tssuprpt.prompt.workdate.fromDate"/>
<arg1 name="range" key="${var:min}" resource='false'/>
<arg1 name="range" key="${var:max}" resource='false'/>
<var>
<var-name>min</var-name>
<var-value>1</var-value>
</var>
<var>
<var-name>max</var-name>
<var-value>31</var-value>
</var>
</field>
</form>
</formset>
</form-validation>
here comes part of .jsp page:
<html:javascript formName='timesheetReport' dynamicJavascript="true" staticJavascript="false"/>
<script language="Javascript1.1" src="../../../JSP/staticJavascript.jsp"></script>
if you have read to this place you have Indian patience...
~nn
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org