Apparently, when you click the datePicker’s link to change the month, it writes the change immediately to the associated textbox.  Since I have auto-postback _javascript_ on that input field, the postback is causing my datePicker to disappear, and the form to be submitted before the day of the month can be changed:

 

<input wicket:id="dateProperty" type="text" size="10" readonly class=SpellE>this.form.submit()"/>

<span wicket:id="datePicker"></span>

 

What I’d really like is to post back not when the texbox changes, but rather, when the datePicker closes.  Any suggestions how?  Would I need to associate the datePicker with something other than a <span/> tag?  On which event would I put the “this.form.submit()” ?

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner
Sent:
Thursday, May 04, 2006 10:40 AM
To: [email protected]
Subject: Re: [Wicket-user] date picker settings first day

 

it doesn't close at my place.
I tested this in IE en FF
i can press it quicly once so that it jumps one month at a time or hold it and scroll to the month i want and the release to select it.
And then the datepicker still doesn't go away.

johan

On 5/4/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:

Is there any way to prevent the DatePicker from closing when one clicks the link to change the month?  When my user wants to change the date from, say, May 5th to April 30th, he has to pop-up the DatePicker twice – once to change the month and once to change the day.

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Lusebrink, Scott E CTR DISA GIG-CS
Sent: Thursday, May 04, 2006 9:47 AM
To: [email protected]
Subject: [Wicket-user] date picker settings first day

 

the datepickersettings.setFirstDate does not work.  this is due to a typo in the DatePickerSettings.toString

if (getFirstDay() != 0)
{
b.append("\n\tfistDay : ").append(getFirstDay()).append(",");
}

this should read "firstDay :"

also considering that the default for the date picker is to have monday (1) as default the if statement does not allow you to set sunday as the first day.  I suggest changing the _javascript_ to have sunday as the first day by default otherwise change the if to != 1

I hope this can be fixed soon

Scott

 

Reply via email to