I forgot to mention I am also setting the type to Date.class I am using the latest wicket release 1.30.
> -----Original Message----- > From: Karen Schaper [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 12:44 AM > To: [EMAIL PROTECTED] Apache. Org > Subject: DateField and Validation > > > Hello, > > I'm using org.apache.wicket.extensions.yui.calendar.DateField and I am > trying to attach a date validator. > > Nothing is happening when I enter a non-date. The other validators on the > TextFields are working. > > If I view the source on the html page I see that the "onBlur" for the > validator is inside the span tag instead of the input text box that is > generated. > > > Here is some of my code.. > > field.add( DateValidator.maximum( new Date() ) ) > field.add( new FXValidationAjaxHandler("onblur") ) > add( field ) > > Is there a way to validate the DateField? > > Thanks > > Karen > > > > > --------------------------------------------------------------------- > 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]