Hi,
I have date picker added to a date field.
DateTextField field = new DateTextField("field", "-MM-dd");
field1.add(new DatePicker());
If the section the date picker is in is visible there is no problem. If the
section is not visible using wicket:enclosure, I get an error:
http://localhost
We had the same problem. It probably can be solved in a better way (but
that would require a RFE and changes to Wicket), but we used a quick and
easy solution (tm).
Instead of actually setting isVisible() on the Date Picker, we just hide
it using CSS. I don't know if this is applicable in your