You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Gerolf Seitz <ge...@gmail.com> on 2007/12/03 00:33:35 UTC

Re: how to change years in YUI datepicker ?

On Dec 3, 2007 10:32 AM, Maris Orbidans <sm...@ime.lv> wrote:

> Hi
>
> I need a calendar that allows to change years quickly.   I have an input
> field where user should enter his birth date.
> But YUI calendar has buttons to change month only.  We can't ask our
> users to click on those buttons hundred times to move calendar to their
> birth date.
> Is there any way to configure YUI calendar to have buttons that changes
> year ?


override DatePicker#enableMonthYearSelection and return true:

class MyDatePicker extends DatePicker {
  protected boolean enableMonthYearSelection() {
    return true;
  }
}

hth,
  Gerolf


>
>
> And if not what should I do ?   It seems that other calendar (from
> extensions)  is a lot better than this YUI crap but it has been removed
> in 1.3.
>
> Maris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: how to change years in YUI datepicker ?

Posted by Maris Orbidans <sm...@ime.lv>.
it works, indeed
thanks
> On Dec 3, 2007 10:32 AM, Maris Orbidans <sm...@ime.lv> wrote:
>
>   
>> Hi
>>
>> I need a calendar that allows to change years quickly.   I have an input
>> field where user should enter his birth date.
>> But YUI calendar has buttons to change month only.  We can't ask our
>> users to click on those buttons hundred times to move calendar to their
>> birth date.
>> Is there any way to configure YUI calendar to have buttons that changes
>> year ?
>>     
>
>
> override DatePicker#enableMonthYearSelection and return true:
>
> class MyDatePicker extends DatePicker {
>   protected boolean enableMonthYearSelection() {
>     return true;
>   }
> }
>
> hth,
>   Gerolf
>
>
>   
>> And if not what should I do ?   It seems that other calendar (from
>> extensions)  is a lot better than this YUI crap but it has been removed
>> in 1.3.
>>
>> Maris
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org