If input is null and the field is not required converters do not run. Show us your code.
-Igor On 2/22/09, rolandpeng <[email protected]> wrote: > > Now I use wicket 1.3.5. > > There is a date field in my webpage.and it is not required. > The date class type is java.sql.date > > But I alway have a NullPointerException while the input of this optional > field is empty. > the exceptions below: > Caused by: java.lang.NullPointerException > at > org.apache.wicket.util.convert.converters.SqlDateConverter.convertToObject(SqlDateConverter.java:35) > at > org.apache.wicket.markup.html.form.FormComponent.convertInput(FormComponent.java:1211) > ... > > How do I fix this problem? > Now I must set a date into my date filed to pass the program.But this field > is not required. > Thanks. > -- > View this message in context: > http://www.nabble.com/A-Bug-in-SqlDateConverter--tp22145097p22145097.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]
