Note, that the SqlDateConverter -class must use java.sql.Date when it returns the value. (that's why it is called 'SqlDateConverter')
** Martin 2009/2/22 Martin Makundi <[email protected]>: > In my opinnion yes. Try the snipplet I sent you. If it does not work, > I will have another look. > > ** > Martin > > 2009/2/22 rolandpeng <[email protected]>: >> >> Thanks for your quick response. >> >> Now I have updated my lib into wicket1.4-rc2. >> >> Rerun the date input functoin and I have another exception.(the date field >> is not empty) >> >> -- >> Caused by: java.lang.ClassCastException: java.util.Date >> at >> org.apache.wicket.util.convert.converters.SqlDateConverter.convertToObject(SqlDateConverter.java:43) >> at >> org.apache.wicket.util.convert.converters.SqlDateConverter.convertToObject(SqlDateConverter.java:28) >> at >> org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1297) >> -- >> >> Is this also another bug of SqlDateConverter? >> Or I need to modify any code of my program? >> Thank you. >> -- >> View this message in context: >> http://www.nabble.com/A-Bug-in-SqlDateConverter--tp22145097p22145456.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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]
