[
https://issues.jboss.org/browse/SEAMINTL-43?page=com.atlassian.jira.plugi...
]
Esteve Aviles commented on SEAMINTL-43:
---------------------------------------
Hi,
Your solution has been tested and works fine.
@Inject
@Alter
@Client
private Event<java.util.Locale> localeEvent;
@Inject
@Client
private Instance<Locale> userLocale;
Despite this, resource boundle is not changed neither by application locale nor by user
locale. Do we need to add faces module? Or we are missing something. From documentation
this is assumed straightforward.
Thanks in advance.
Alter user locale not working
-----------------------------
Key: SEAMINTL-43
URL:
https://issues.jboss.org/browse/SEAMINTL-43
Project: Seam International
Issue Type: Bug
Affects Versions: 3.0.0.Final
Environment: JBoss 6.0.0.Final, Seam 3.0.0.Final
Reporter: Esteve Aviles
Assignee: Ken Finnigan
Labels: international, seam
Original Estimate: 1 day
Remaining Estimate: 1 day
Hi,
I am trying to change locale properties settings without success.
I try to use it as described in the documentation:
public String changeLocale(){
log.info("Changing locale to: "+ new Locale(selectedLocale.get()));
localeEvent.fire(new Locale(selectedLocale.get()));
log.info("Locale Changed to: "+ userLocale);
messages.warn(new BundleKey("resources", "locale.changeok"), new
Locale(selectedLocale.get()));
return null;
}
An the result is something like this:
13:08:27,664 INFO [org.jboss.seam.international.examples.locale.UserSessionView]
Changing locale to: pt_br
13:08:27,664 INFO [org.jboss.seam.international.examples.locale.UserSessionView] Locale
Changed to: ca_ES
Resource boundle is not changed neither with the default nor with the changed one.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira