RE: Struts validator [ client side error when using date validator]
Any ideas please ? Amjad -Original Message- From: Amjad I. Shahrour [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 8:54 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Struts validator [ client side error when using date validator] Already tried, but still not working ! Amjad -Original Message- From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 7:35 PM To: Struts Users Mailing List Subject: Re: Struts validator [ client side error when using date validator] Off the top of my head, try using: datePatternStrict instead of datePattern in in your validation.xml. Saul > Hi, > > I have configured and used struts validator for my application, > Server side validation is working perfectly... > > For client side, the required validator is working fine, but the date > ( for example) is not working and giving a java script error " > datePattern" has no properties. > > > > Please help. > > > Thanx in advance > Amjad > > > --Snippet from validation.xml- >property="startDate" > depends="date"> > > > datePattern > dd/MM/ > > > > > --- Snippet from validation-rules.xml -- - --- --- > classname="org.apache.struts.validator.FieldChecks" >method="validateDate" > methodParams="java.lang.Object, >org.apache.commons.validator.ValidatorAction, >org.apache.commons.validator.Field, >org.apache.struts.action.ActionErrors, >javax.servlet.http.HttpServletRequest" > depends="" > msg="errors.date" >jsFunctionName="DateValidations"> > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts validator [ client side error when using date validator]
Already tried, but still not working ! Amjad -Original Message- From: Saul Qunming Yuan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 08, 2005 7:35 PM To: Struts Users Mailing List Subject: Re: Struts validator [ client side error when using date validator] Off the top of my head, try using: datePatternStrict instead of datePattern in in your validation.xml. Saul > Hi, > > I have configured and used struts validator for my application, > Server side validation is working perfectly... > > For client side, the required validator is working fine, but the date > ( for example) is not working and giving a java script error " > datePattern" has no properties. > > > > Please help. > > > Thanx in advance > Amjad > > > --Snippet from validation.xml- >property="startDate" > depends="date"> > > > datePattern > dd/MM/ > > > > > --- Snippet from validation-rules.xml -- - --- --- > classname="org.apache.struts.validator.FieldChecks" >method="validateDate" > methodParams="java.lang.Object, >org.apache.commons.validator.ValidatorAction, >org.apache.commons.validator.Field, >org.apache.struts.action.ActionErrors, >javax.servlet.http.HttpServletRequest" > depends="" > msg="errors.date" >jsFunctionName="DateValidations"> > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts validator [ client side error when using date validator]
Off the top of my head, try using: datePatternStrict instead of datePattern in in your validation.xml. Saul > Hi, > > I have configured and used struts validator for my application, > Server side validation is working perfectly... > > For client side, the required validator is working fine, but the date > ( for example) is not working and giving a java script error " > datePattern" has no properties. > > > > Please help. > > > Thanx in advance > Amjad > > > --Snippet from validation.xml- >property="startDate" > depends="date"> > > > datePattern > dd/MM/ > > > > > --- Snippet from validation-rules.xml -- - --- --- > classname="org.apache.struts.validator.FieldChecks" >method="validateDate" > methodParams="java.lang.Object, >org.apache.commons.validator.ValidatorAction, >org.apache.commons.validator.Field, >org.apache.struts.action.ActionErrors, >javax.servlet.http.HttpServletRequest" > depends="" > msg="errors.date" >jsFunctionName="DateValidations"> > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]