You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Ford <df...@smart-soft.com> on 2003/06/22 08:30:48 UTC

JavaScript Date Validation Not Working Correctly

I am entering a valid date (10/14/66) but no matter what i type it alwasy
gives a javascript error: DateOfBirth is not a date. Here my validation
code. ANy ideas why this isn't working?

            <field property="dateOfBirth" depends="required,date">
                <arg0 key="person.dateOfBirth.label"/>
                <var>
                    <var-name>datePatternStrict</var-name>
                    <var-value>MM/dd/yy</var-value>
                </var>
            </field>


Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org