[
https://issues.apache.org/struts/browse/SHALE-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40871
]
Torsten Krah commented on SHALE-437:
------------------------------------
Made some "StackTraces":
StackTrace of Application View Initialisation:
-> CreateView:
ShaleViewRoot(UIViewRoot).setLocale(Locale) line: 269
JspViewHandlerImpl.createView(FacesContext, String) line: 121
ClayViewHandler.createView(FacesContext, String) line: 143
ValidatorViewHandler.createView(FacesContext, String) line: 109
ViewViewHandler.createView(FacesContext, String) line: 126
RestoreViewExecutor.execute(FacesContext) line: 83
-> now locale is set
-> RenderView:
ShaleViewRoot(UIViewRoot).getLocale() line: 195
ClayViewHandler.renderView(FacesContext, UIViewRoot) line: 389
ValidatorViewHandler.renderView(FacesContext, UIViewRoot) line: 130
ViewViewHandler.renderView(FacesContext, UIViewRoot) line: 147
RenderResponseExecutor.execute(FacesContext) line: 41
LifecycleImpl.render(FacesContext) line: 132
-> AssignViewRootCommand:
AssignViewRootCommand.execute(Context) line: 101
ChainBase.execute(Context) line: 190
FalseLookupCommand(LookupCommand).execute(Context) line: 304
FalseLookupCommand.execute(Context) line: 39
ChainBase.execute(Context) line: 190
AssignChildrenCommand.execute(Context) line: 93
ChainBase.execute(Context) line: 190
Clay.encodeBegin(FacesContext) line: 390
The VB with my bean locale binding from AssignViewRootCommand "comes too late"
- the locale is already set and now returned forever, like coded in [1].
[1]
http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/UIViewRoot.java?view=markup
Am i right?
Torsten
> Setting Locale on ViewRoot to an EL Expression is broken
> --------------------------------------------------------
>
> Key: SHALE-437
> URL: https://issues.apache.org/struts/browse/SHALE-437
> Project: Shale
> Issue Type: Bug
> Components: Clay
> Affects Versions: 1.0.4, 1.1.0-SNAPSHOT
> Environment: JDK 1.[56], Tomcat [56]
> Reporter: Torsten Krah
>
> The improvement is is resolved there
> https://issues.apache.org/struts/browse/SHALE-331.
> Cant modify it to reopen it as a "bug" - so i open a new one.
> Like i told on the list, the locale binding is broken for EL expressions.
> Looking at the code i saw the binding expression is set to the ShaleViewRoot.
> But i can change the result of the expression to another locale - the locale
> of the ViewRoot still says the same.
> Torsten
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.