As following:
protected DateTextField newDateTextField(String id, PropertyModel
dateFieldModel)
{
return DateTextField.forDateStyle(id, dateFieldModel, "M-");
}
Adriano
Gerolf Seitz wrote:
you can override the method newDateTextField(String, PropertyModel) and
return
a customized DateTextField object.
gerolf
On Thu, Jan 1, 2009 at 6:44 AM, tbt <[email protected]> wrote:
Hi
I am not sure if the DateTextField attribute in the DateTimeField class can
be modified to change the calendar behavior. But you could use a TextField
or a DateTextField and add a DatePicker instance to it like the following
example
TextField checkInField = new TextField("checkInField"
,new
PropertyModel(searchModel,"checkInDate"));
DatePicker checkInPicker = new DatePicker()
{
protected String getDatePattern()
{
return "dd/MMM/yyyy";
}
};
checkInField.add(checkInPicker);
regards
--
View this message in context:
http://www.nabble.com/DateTimeField-Error-and-Question-tp21221202p21239433.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]