Hi,

A very nice solution to the this problem could be as Michael Mosmann
suggested:

initStart3 = function() {
 Wicket.DateTime.init( {

you should extend the input tag with
--------------------------
onfocus="initStart3.showCalendar()"


The problem is that in the wicket-date.js the showCalendar function is
private.

It can be found under the section where the datepicker is initialized:
Wicket.DateTime.init = function(cfg) { ... function showCalendar() {....}

Because the javascript function is private and not made public, the calendar
popup can not be triggered from other
fields by adding code like: onfocus="initStart3.showCalendar()"

I must recommend that the showCalendar function is made public for the
future so the users
easily can trigger the calendar.

Right now i made a ugly hack to make it work.

Best Regards
Cemil


On Mon, Aug 24, 2009 at 1:49 PM, copenhag copenhagen
<[email protected]>wrote:

> Hi
>
> Thanks for the tip...
>
> I looked at wiquery and it looks good.
>
> And i may use some nice features from WiQuery later on.
>
> The problem is that my datepicker is integrated with the default Wicket
> datepicker, so
> it would be to heavy a job to use the WiQuery datepicker.
>
> But appearently there is no easy way of doing this.
>
> Best Regards
> Cemil
>
>
>
>
> On Fri, Aug 21, 2009 at 4:24 PM, sander v F <[email protected]>wrote:
>
>> There is a JQuery plugin capable of doing this, see:
>>
>> http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerClickInput.html
>>
>> You should have a look at WiQuery ( http://code.google.com/p/wiquery/ ),
>> a
>> Wicket JQuery component. I don't know if they already implemented this
>> datepicker, but it should be easy to make a plugin.
>>
>>
>>
>> 2009/8/21 Michael Mosmann <[email protected]>
>>
>> > Am Freitag, den 21.08.2009, 14:33 +0200 schrieb copenhag copenhagen:
>> > > Has no one really needed the calendar popup when the input field is
>> > > selected/pressed ?
>> >
>> > sorry.. (btw. IMHO it is annoying ..)
>> >
>> > i searched for some solution.. but i think you have to
>> > a) take a look into this yui magic
>> > b) ask on dev list for some infos about an extension of the current
>> > datepicker
>> > c) choose some different..
>> > d) ..?
>> >
>> > mm:)
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [email protected]
>> > For additional commands, e-mail: [email protected]
>> >
>> >
>>
>
>

Reply via email to