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 <[email protected]>: > > 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: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- > 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]
