*/
public DatesPage()
{
selectedLocale = Session.get().getLocale();
add(new LocaleDropDownChoice("localeSelect"));
DateTextField dateTextField = new DateTextField("dateTextField", new PropertyModel(this,
"date"), new StyleDateConverter("S-", true))
{
@Override
public Locale getLocale()
{
return selectedLocale;
}
};
add(new Link("localeUSLink")
{
@Override
public void onClick()
{
selectedLocale = LOCALE_EN;
}
});
Form form = new Form("form")
{
@Override
protected void onSubmit()
{
info("set date to " + date);
}
};
add(form);
form.add(dateTextField);
dateTextField.add(new DatePicker()
{
@Override
protected boolean enableMonthYearSelection()
{
return false;