-
1. Re: internationalization question
wise_guybg Sep 12, 2007 3:20 AM (in response to panpur)Hi,
You can have the localeSelector component injected in your authenticator component:@In LocaleSelector localeSelector;
And in the authenticate method:localeSelector.setLocaleString(l); localeSelector.select();
There are other setters available, too. I use setLocaleString() because this is what is most useful if you use getSupportedLocales(). -
2. Re: internationalization question
panpur Sep 12, 2007 3:36 AM (in response to panpur)awesome...
thank's for the answer wise_guybg
now i can finally finish my job
cheers -
3. Re: internationalization question
mheidt Oct 25, 2007 9:46 AM (in response to panpur)Is it possible to overwrite the localeSelector class?
I have the problem that translated list entries in a session bean need to be recreated when changing the language.
I don't see a setCallback or anything like that.
http://www.redhat.com/docs/manuals/jboss/jboss-eap-4.2/doc/seam/api/org/jboss/seam/core/LocaleSelector.html
And I don't find anything here, how to change the LocaleSelector to a CustomLocaleSelector class.
http://docs.jboss.com/seam/2.0.0.CR2/reference/en/html/i18n.html
TIA -
4. Re: internationalization question
zerg-spirit Oct 25, 2007 10:24 AM (in response to panpur)Just do that:
@Scope(value = SESSION) @Name(value = "org.jboss.seam.international.localeSelector") @BypassInterceptors public class CustomLocaleSelector extends org.jboss.seam.international.LocaleSelector { ... }
-
5. Re: internationalization question
mheidt Oct 25, 2007 10:58 AM (in response to panpur)Douze points
@Override public void select() { super.select(); }
Thanks a lot -
6. Re: internationalization question
pmuir Oct 26, 2007 6:38 AM (in response to panpur)The org.jbos.seam.localeSelected event is reaised when the locale is selected - that's your "callback"
-
7. Re: internationalization question
mheidt Oct 27, 2007 3:45 AM (in response to panpur)http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082045#4082045
Zerg-Spirit knew better as well :)