got5/tapestry5-jquery — Issue #115: DateField localization does not work in ajax setting
Author: 9902468
Created: 2011-12-29 17:56:39+00:00
State: open

Hi,

DateField localization is broken if:
1. The original page load (the non-ajax one) does not have any datefields (The localized js is never loaded)
2. The date field is loaded using ajax (For us it is inside dialog)

Firebug shows that the correct localized .js file is downloaded to the browser, but I suspect that the contents is not ever evaluated.

If you take a look at the localized source code it is essentially:

jQuery(function($){
$.datepicker.regional['fi'] = {
closeText: 'Sulje',
... .... .... ... ... ...
$.datepicker.setDefaults($.datepicker.regional['fi']);
});

Is it so that the file is never evaluated when loaded using ajax?

- Ville