Details
-
Type: Bug
-
Status: Open
-
Priority: Major
-
Resolution: Unresolved
-
Affects Version/s: 1.8.2-EE-GA_P01
-
Fix Version/s: None
-
Component/s: Framework
-
Labels:None
-
Environment:ICEfaces
Description
SettableLocaleViewRoot is implemented by inspecting the stack to accept the locale only from certain callers:
public void setLocale(Locale locale) {
//ignore locale set by RestoreViewPhase since it is using the first locale in the Accept-Language list,
//instead it should calculate the locale
StackTraceElement[] ste = (new RuntimeException()).getStackTrace();
This approach is performance intensive and should be revised.
public void setLocale(Locale locale) {
//ignore locale set by RestoreViewPhase since it is using the first locale in the Accept-Language list,
//instead it should calculate the locale
StackTraceElement[] ste = (new RuntimeException()).getStackTrace();
This approach is performance intensive and should be revised.
Perhaps there is a way to use a PhaseListener here?