[Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Tomer Mevorach
hi, I have noticed that its impossible to initialize wickets date picker with server time. the reason for that lies in calendar-setup.js (line 159): if (dateEl) params.date = Date.parseDate(dateEl.value || dateEl.innerHTML, dateFmt); I think that if Date.parseDate(dateEl.value ||

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Johan Compagner
please make a patch then we will apply it.johanOn 8/28/06, Tomer Mevorach [EMAIL PROTECTED] wrote: hi,I have noticed that its impossible to initialize wickets date pickerwith server time. the reason for that lies in calendar-setup.js (line 159):if (dateEl)params.date = Date.parseDate(dateEl.value

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Tomer Mevorach
in calendar-setup.js (wicket-extensions-1.2.2): replace line 158 (if (dateEl)) with if (dateEl (dateEl.value || dateEl.innerHTML)). Regards, Tomer Johan Compagner wrote: please make a patch then we will apply it. johan On 8/28/06, *Tomer Mevorach* [EMAIL PROTECTED] mailto:[EMAIL

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Eelco Hillenius
Applied. Cheers, Eelco On 8/28/06, Tomer Mevorach [EMAIL PROTECTED] wrote: in calendar-setup.js (wicket-extensions-1.2.2): replace line 158 (if (dateEl)) with if (dateEl (dateEl.value || dateEl.innerHTML)). Regards, Tomer Johan Compagner wrote: please make a patch then we will apply

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Johan Compagner
also something like this:@Overridepublic String toScript(Locale locale, String format) { StringBuffer script = new StringBuffer(super.toScript(locale,format)); //init date picker with server time int last = script.length() - 1; if (',' != script.charAt(last)) {

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-28 Thread Tomer Mevorach
Thanks. Eelco Hillenius wrote: Applied. Cheers, Eelco On 8/28/06, Tomer Mevorach [EMAIL PROTECTED] wrote: in calendar-setup.js (wicket-extensions-1.2.2): replace line 158 (if (dateEl)) with if (dateEl (dateEl.value || dateEl.innerHTML)). Regards, Tomer Johan Compagner wrote:

Re: [Wicket-user] trying to initialize wickets date picker with server time

2006-08-23 Thread Johan Compagner
why don't you give the model object that the datepicker component has an inital value?(which is new Date())johanOn 8/23/06, Tomer Mevorach [EMAIL PROTECTED] wrote:hi, I have a DatePicker in my application and it works fine when itsinitialized with client machine time.I have problems initializing

[Wicket-user] trying to initialize wickets date picker with server time

2006-08-22 Thread Tomer Mevorach
hi, I have a DatePicker in my application and it works fine when its initialized with client machine time. I have problems initializing it with server time. in order to initialize it with server time i use the following DatePickerSettings and DateConverter: private static final DateFormat