google-code-export / jqwicket

Automatically exported from code.google.com/p/jqwicket
1 stars 0 forks source link

I18N and JqWicket #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add I18N support for JQWicket.

How can we integrate easily JQWicket and I18N Wicket mechanism?

For an example in DatePickerOptions() month names or similar regional settings.

Thanks for this great piece of code.

Original issue reported on code.google.com by rcoqueug...@gmail.com on 3 Mar 2011 at 9:55

GoogleCodeExporter commented 9 years ago
Hi,

jqwicket provides only a bridge between wicket and jquery components. For I18N 
you have to use stadard mechanism provided by the wicket itself.

In case of DatePickerOptions, you can specify month names like this:

new DatePickerOptions().monthNames(
  getString("key.jan"), getString("key.feb"), ..., getString("key.dec")
);

, where "key.jan", key.feb",... are the keys from the resource bundle.

Original comment by m...@javaforge.net on 3 Mar 2011 at 2:22

GoogleCodeExporter commented 9 years ago
Hi,

Your solution is the first step to handle such i18n mechanism. 
But wouldn't it be more useful, if this could be automatically bound to the 
Locale present in Session?
So that every call to DatePickerOptions() would be filled (by default) with 
Localized ResourceBundle properties ?

Thanks again for your answer.

-R-

Original comment by rcoqueug...@gmail.com on 3 Mar 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Hi,

as i mentioned above, the highest priority in jqwicket was to provide a more or 
less "clear" java api to the existing javscript (jquery) api.

But you are right, it will be a nice enhancement. I'll change the issue type to 
"enhancement" and implement it in some of the next releases.

Original comment by m...@javaforge.net on 5 Mar 2011 at 10:55