Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta
-
Component/s: Sample Apps
-
Labels:None
-
Environment:MyFaces 2 Component Showcase
-
Assignee Priority:P2
-
Affects:Sample App./Tutorial
Description
When running the compat Component Showcase, the pull down menu for choosing a language does not work when running on MyFaces 2. The problem is related to the issue reported in ICE-7236 found during regression testing. Basically the f:loadBundle tag was not designed to work with Ajax requests and MyFaces appears to be more strict about this than Mojarra. The solution is to apply the application-level changes outlined in the other case:
- remove the f:loadBundle tag
- wrap the markup in <f:view locale="#{testBean.locale}"> so that the locale is set right at the view level
- set the locale in the appropriate place via
FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(locale));
- add something similar to the following to the faces-config.xml file:
<resource-bundle>
<base-name>org.icefaces.application.showcase.view.resources.messages</base-name>
<var>msgs</var>
</resource-bundle>
- remove the f:loadBundle tag
- wrap the markup in <f:view locale="#{testBean.locale}"> so that the locale is set right at the view level
- set the locale in the appropriate place via
FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale(locale));
- add something similar to the following to the faces-config.xml file:
<resource-bundle>
<base-name>org.icefaces.application.showcase.view.resources.messages</base-name>
<var>msgs</var>
</resource-bundle>
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Deryk Sinotte
created issue -
Deryk Sinotte
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Assignee Priority | P2 | |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Deryk Sinotte
made changes -
Salesforce Case | [] | |
Affects | [Sample App./Tutorial] |
Ken Fyten
made changes -
Fix Version/s | 3.0 [ 10241 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |