@SuppressWarnings("serial")
public DatePanel(final String id, final IModel<Date> model, final DatePanelSettings settings)
{
super(id, model);
setType(settings.targetType);
final MyDateConverter dateConverter = new MyDateConverter(settings.targetType, "M-");
dateField = new DateTextField("dateField", new PropertyModel<Date>(this, "date"), dateConverter) {
/**
* @see org.apache.wicket.Component#renderHead(org.apache.wicket.markup.head.IHeaderResponse)
*/
@Override