Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-Alpha3
-
Fix Version/s: 2.0.0
-
Component/s: ICE-Components
-
Labels:None
-
Environment:ICEfaces 2 JSF 2
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration
-
Workaround Exists:Yes
-
Workaround Description:
Description
Up to Alpha 3 release, the ICEfaces response writer (DOMResponseWriter) was returned hardcoded values for:
content type: text/html
encoding: UTF-8
While this covers a wide range of use cases, it's not adaptable to change by application developers. Changes to the DOMResponseWriter inICE-5664 - to provide better support for determining the proper content type and encoding - makes for a more compatible ICEfaces experience.
However, now that the values are no longer hard coded, browsers can potentially handle the markup differently based on what they accept and prefer. For example Chrome and Safari currently prefer "application/xhtml+xml" over "text/html":
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
whereas Firefox prefers "text/html"
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
This is all fine (and better explained here - http://www.w3.org/TR/xhtml-media-types/) except that if the content type "application/xhtml-xml" is returned, then the default namespace must also be included or the page will not render correctly:
<html xmlns="http://www.w3.org/1999/xhtml">
So we need to ensure that we document this requirement and that our example applications are properly adjusted to ensure the default namespace is included in our page markup.
content type: text/html
encoding: UTF-8
While this covers a wide range of use cases, it's not adaptable to change by application developers. Changes to the DOMResponseWriter in
However, now that the values are no longer hard coded, browsers can potentially handle the markup differently based on what they accept and prefer. For example Chrome and Safari currently prefer "application/xhtml+xml" over "text/html":
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
whereas Firefox prefers "text/html"
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
This is all fine (and better explained here - http://www.w3.org/TR/xhtml-media-types/) except that if the content type "application/xhtml-xml" is returned, then the default namespace must also be included or the page will not render correctly:
<html xmlns="http://www.w3.org/1999/xhtml">
So we need to ensure that we document this requirement and that our example applications are properly adjusted to ensure the default namespace is included in our page markup.
Activity
Deryk Sinotte
created issue -
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 2.0-Beta [ 10231 ] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration] | |
Assignee | Deryk Sinotte [ deryk.sinotte ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Affects | [Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration] | [Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial, Compatibility/Configuration] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21774 | Mon Jun 21 11:21:49 MDT 2010 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/panelcollapsible/PanelCollapsibleRenderer.java
MODIFY /icefaces/scratchpads/glimmer/compat/components/src/main/java/com/icesoft/faces/component/paneltabset/PanelTabSetRenderer.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21775 | Mon Jun 21 11:22:25 MDT 2010 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/glimmer/compat/core/src/main/javascript/scriptaculous/dragdrop.js
MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/javascript/extras/extras.js MODIFY /icefaces/scratchpads/glimmer/compat/core/src/main/javascript/scriptaculous/builder.js |
Deryk Sinotte
made changes -
Summary | Default xhtml namespace required | Improve xhtml compliance |
Salesforce Case | [] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #21795 | Thu Jun 24 11:59:24 MDT 2010 | deryk.sinotte | |
Files Changed | ||||
MODIFY
/icefaces/scratchpads/glimmer/core/src/main/java/org/icefaces/util/DOMUtils.java
MODIFY /icefaces/scratchpads/glimmer/compat/samples/component-showcase/web/WEB-INF/includes/templates/page-template.xhtml |
Deryk Sinotte
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Deryk Sinotte
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Deryk Sinotte
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Deryk Sinotte
made changes -
Attachment | ICE-5891-revert.patch [ 12443 ] |
Deryk Sinotte
made changes -
Salesforce Case | [] | |
Component/s | Bridge [ 10011 ] | |
Component/s | Components [ 10012 ] | |
Assignee | Deryk Sinotte [ deryk.sinotte ] | Ken Fyten [ ken.fyten ] |
Ken Fyten
made changes -
Fix Version/s | 2.0-Beta2 [ 10242 ] | |
Fix Version/s | 2.0-Beta1 [ 10231 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Fix Version/s | 2.0.0 [ 10230 ] | |
Fix Version/s | 2.0-Beta2 [ 10242 ] |
Ken Fyten
made changes -
Summary | Improve xhtml compliance | Several remaining xhtml compliance issues with compat components |
Salesforce Case | [] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Component/s | Documentation [ 10018 ] | |
Component/s | Framework [ 10013 ] | |
Component/s | Sample Apps [ 10010 ] | |
Component/s | Bridge [ 10011 ] |
Deryk Sinotte
made changes -
Workaround Description |
Add the f:view tag with the following attribute to ensure that the content type is text/html: <f:view contentType="text/html"> |
|
Workaround Exists | [Yes] | |
Salesforce Case | [] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Assignee Priority | P2 | |
Assignee | Ken Fyten [ ken.fyten ] | Yip Ng [ yip.ng ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #23190 | Tue Nov 23 17:24:10 MST 2010 | yip.ng | |
Files Changed | ||||
MODIFY
/icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/selectinputdate/SelectInputDateRenderer.java
MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/outputprogress/OutputProgressRenderer.java MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/paneldivider/PanelDividerRenderer.java MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/ext/renderkit/TableRenderer.java MODIFY /icefaces2/trunk/icefaces/compat/components/src/main/java/com/icesoft/faces/component/outputprogress/OutputProgress.java |
yip.ng
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
yip.ng
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 |
Improving subject line