it is very dangerous to do that.
The 2 formats MUST be in sync so you should just specify the java format stirng you want to have.
You shouldn't set the _javascript_ format to something else (that is not the same as the java format string)

or do you have a case where you have the datepicker but the value never get send back to the server?? (which seems odd)

johan


On 5/3/06, Ari Suutari <[EMAIL PROTECTED]> wrote:
Hi,

It looks like DatePickerSettings.setIfFormat no longer works. The value
set by it is always overwritten by DatePicker.getInitScript, which
calls settings.toScript with format taken from DateConverter.

I would like two changes here:

- adjust DatePickerSettings.toScript so that it calls setIfFormat only
   if ifFormat is null, ie. programmer hasn't provided any default.

- adjust DatePicker so that it takes the DateConverter from ConverterFactory.
  Now it just creates an instance of DateConverter, which might have different
  format than the instance returned by ConverterFactory (which is used by textfields).
  This can result in situations where date string returned by picker is not parseable
  by text field.

    Ari S.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to