Bugs item #1465702, was opened at 2006-04-06 14:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1465702&group_id=119783

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.2
Status: Open
Resolution: None
Priority: 7
Submitted By: Martijn Dashorst (dashorst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Regression: typed validator throws ClassCastException

Initial Comment:
A field created using new TextField("foo", Date.class)

throws a ClassCastException when submitted. I committed
a testcase for this issue in the unittests:

Caused by: wicket.WicketRuntimeException: Exception
java.lang.ClassCastException: java.util.Date occurred
during validation
nl.topicus.iridium.web.gui.leerling.EditLeerlingPersonaliaPage$5
on component 7:personaliaForm:geboortedatum
        at
wicket.markup.html.form.FormComponent.checkValidators(FormComponent.java:640)
        at wicket.markup.html.form.Form$15.validate(Form.java:885)
        at
wicket.markup.html.form.Form$ValidationVisitor.formComponent(Form.java:143)
        at wicket.markup.html.form.Form$4.component(Form.java:409)
        at
wicket.MarkupContainer.visitChildren(MarkupContainer.java:692)
        at
wicket.markup.html.form.Form.visitFormComponents(Form.java:405)
        at
wicket.markup.html.form.Form.validateValidators(Form.java:881)
        at wicket.markup.html.form.Form.validate(Form.java:843)
        at
nl.topicus.iridium.web.components.form.VersionedForm.validate(VersionedForm.java:88)
        at wicket.markup.html.form.Form.process(Form.java:755)
        at
wicket.markup.html.form.Form.onFormSubmitted(Form.java:281)
        ... 30 more
Caused by: java.lang.ClassCastException: java.util.Date
        at
wicket.markup.html.form.validation.StringValidator.validate(StringValidator.java:107)
        at
wicket.markup.html.form.FormComponent.checkValidators(FormComponent.java:631)
        ... 40 more


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=684975&aid=1465702&group_id=119783


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to