Hello all:

I'm having problems using the Validator to check a date field.

In the form i have a simple textbox and I'm using the following validation:

<field property="icp" depends="required,date">                          
<msg name="required" key="validator.error.requiredfield"/>
<arg0 key="I.C.P." resource="false"/>

<msg name="date" key="validator.error.invalidinput"/>
<arg0 key="I.C.P." resource="false"/>                           
<var>
  <var-name>datePattern</var-name>
  <var-value>dd/MM/yyyy</var-value>
</var>

</field>

to insert the javascript code I use:

 <html:javascript formName="newIssueForm" dynamicJavascript="true" 
staticJavascript="false"/> 
 <script language="Javascript1.1" 
src="http://localhost:8080/portalcde/staticJavascript.jsp";></script> 


On submit I get the error: "datePattern has no properties".
I traced down the error to a line of code where de length of the variables is tested: 
      if(datePattern.lenght>0){


This code is generated by Validator so I don't know what to do about it.

Any ideas?



Thanks in advanced.

Carlos Olmos.




Need a new email address that people can remember
Check out the new EudoraMail at
http://www.eudoramail.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to