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 <nadeesh...@yahoo.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to