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 ||
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
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
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
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)) {
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:
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
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