Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 4.0.BETA, EE-3.3.0.GA_P02
-
Fix Version/s: EE-4.1.0.RC1, EE-4.1.0.GA, EE-3.3.0.GA_P04, 4.2.BETA, 4.2
-
Component/s: Framework
-
Labels:None
-
Environment:All
-
Assignee Priority:P1
-
Support Case References:Support Case #12927 - https://icesoft.my.salesforce.com/5007000000dxu1o
Description
Feature Request: Currently for Internationalization with ICEfaces we recommend changing the f:view locale attribute to reflect the change in locale. The issue with this is that it does not reflect these changes to the <html> lang attribute.
The HTML lang attribute helps search robots interpret the page and provide tools such as automatic translation. This is an SEO recommendation.
First step would be to see if this is possible under the JSF/ICEfaces framework.
The HTML lang attribute helps search robots interpret the page and provide tools such as automatic translation. This is an SEO recommendation.
First step would be to see if this is possible under the JSF/ICEfaces framework.
-
Hide
- Case12927Example.war
- 9.76 MB
- Arran Mccullough
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/context.xml 0.1 kB
- WEB-INF/classes/.../support/LocaleBean.class 2 kB
- WEB-INF/lib/icefaces-ace.jar 6.09 MB
- WEB-INF/lib/icefaces.jar 686 kB
- WEB-INF/lib/javax.faces-2.2.13.jar 2.99 MB
- WEB-INF/web.xml 2 kB
- index.xhtml 0.5 kB
- welcomeICEfaces.xhtml 1 kB
-
Hide
- Case12927Example.zip
- 20 kB
- Arran Mccullough
-
- Case12927Example/build.xml 3 kB
- Case12927Example/.../ant-deploy.xml 2 kB
- Case12927Example/.../build-impl.xml 80 kB
- Case12927Example/.../genfiles.properties 0.5 kB
- Case12927Example/.../private.properties 0.6 kB
- Case12927Example/nbproject/.../private.xml 0.2 kB
- Case12927Example/.../project.properties 4 kB
- Case12927Example/nbproject/project.xml 0.9 kB
- Case12927Example/src/conf/MANIFEST.MF 0.0 kB
- Case12927Example/src/.../LocaleBean.java 1 kB
- Case12927Example/web/index.xhtml 0.5 kB
- Case12927Example/web/.../context.xml 0.1 kB
- Case12927Example/web/WEB-INF/web.xml 2 kB
- Case12927Example/.../welcomeICEfaces.xhtml 1 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Modified DOMResposeWriter to add an 'id' attribute to the 'html' element when missing so that element's attributes can be updated. The 'id' attribute is added only when org.icefaces.diffConfig contains the 'att' setting since only then the 'html' attributes can be modified, full 'html' element update was never supported by JSF or most of the browsers.
Show
Mircea Toma
added a comment - - edited Modified DOMResposeWriter to add an 'id' attribute to the 'html' element when missing so that element's attributes can be updated. The 'id' attribute is added only when org.icefaces.diffConfig contains the 'att' setting since only then the 'html' attributes can be modified, full 'html' element update was never supported by JSF or most of the browsers.
Verify if org.icefaces.diffConfig parameter is null before using its value.
Show
Mircea Toma
added a comment - Verify if org.icefaces.diffConfig parameter is null before using its value.
As already explained above the following context parameter needs to be added into web.xml file in order for the updates to work:
<context-param> <param-name>org.icefaces.diffConfig</param-name> <param-value>att</param-value> </context-param>
Show
Mircea Toma
added a comment - - edited As already explained above the following context parameter needs to be added into web.xml file in order for the updates to work:
<context-param>
<param-name>org.icefaces.diffConfig</param-name>
<param-value>att</param-value>
</context-param>
Uploaded sample test case showing issue when dynamically changing the HTML lang attribute.
Steps: