did you try debugger and breakpoint? 2009/12/28 Sam Barrow <s...@sambarrow.com>: > I tried that too, still same error. > > On Mon, 2009-12-28 at 16:02 +0200, Martin Makundi wrote: >> You forgot to set Type of the textfield... you know, generics are only >> compile-deep. >> >> public TextField(final String id, final Class<T> type) >> >> type -> Date.class >> >> ** >> Martin >> >> 2009/12/28 Sam Barrow <s...@sambarrow.com>: >> > I'm getting this exception when calling getConvertedInput() on >> > birthDateField. >> > >> > java.lang.ClassCastException: java.lang.String cannot be cast to >> > java.util.Date >> > >> > I'm using wicket 1.4.1 >> > >> > >> > birthDateField = new TextField<Date>("birthDate", new >> > Model<Date>()); >> > birthDateField.setLabel(new Model<String>("Birth Date")); >> > birthDateField.add(new DatePicker()); >> > FormUtils.addField(this, birthDateField); >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org