Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-2.0.0
-
Fix Version/s: EE-3.0.0.GA
-
Component/s: Core Extensions
-
Labels:None
-
Environment:-
-
Workaround Description:Do not use com.icesoft.facelets.HtmlTagDecorator
Description
When creating a stock ICE 2.0 EE GA - JSF 2 sample and adding the following param:
<context-param>
<param-name>javax.faces.FACELETS_DECORATORS</param-name>
<param-value>com.icesoft.facelets.HtmlTagDecorator</param-value>
</context-param>
I get see the following exception on startup:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createAttribute(CoreDocumentImpl.java:564)
at org.icefaces.impl.context.DOMResponseWriter.writeAttribute(DOMResponseWriter.java:256)
at com.icesoft.faces.impl.renderkit.xhtml.XhtmlRendererBase.encodeBegin(XhtmlRendererBase.java:42)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
The exception is thrown from the following line of ICEfaces 2.0 EE GA code:
DOMResponseWriter.writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException {
if (null == value) {
return;
}
Attr attribute = document.createAttribute(name.trim());
attribute.setValue(String.valueOf(value));
appendToCursor(attribute);
}
The 3 method arguments output the following:
Name:
Property:null
Value:http://www.w3.org/1999/xhtml
Test case attached.
<context-param>
<param-name>javax.faces.FACELETS_DECORATORS</param-name>
<param-value>com.icesoft.facelets.HtmlTagDecorator</param-value>
</context-param>
I get see the following exception on startup:
org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createAttribute(CoreDocumentImpl.java:564)
at org.icefaces.impl.context.DOMResponseWriter.writeAttribute(DOMResponseWriter.java:256)
at com.icesoft.faces.impl.renderkit.xhtml.XhtmlRendererBase.encodeBegin(XhtmlRendererBase.java:42)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:824)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1641)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389)
The exception is thrown from the following line of ICEfaces 2.0 EE GA code:
DOMResponseWriter.writeAttribute
public void writeAttribute(String name, Object value, String property) throws IOException {
if (null == value) {
return;
}
Attr attribute = document.createAttribute(name.trim());
attribute.setValue(String.valueOf(value));
appendToCursor(attribute);
}
The 3 method arguments output the following:
Name:
Property:null
Value:http://www.w3.org/1999/xhtml
Test case attached.
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000GuLV7] |
Tyler Johnson
made changes -
Workaround Description | Do not use com.icesoft.facelets.HtmlTagDecorator |
Tyler Johnson
made changes -
Attachment | sc10095.war [ 13284 ] |
Ken Fyten
made changes -
Fix Version/s | EE-2.0.0.GA_P01 [ 10271 ] | |
Fix Version/s | 2.1 [ 10241 ] | |
Assignee Priority | P3 | |
Assignee | Ted Goddard [ ted.goddard ] |
Ken Fyten
made changes -
Assignee Priority | P3 | P2 |
Ken Fyten
made changes -
Fix Version/s | EE-2.1.0 [ 10262 ] | |
Fix Version/s | 2.1 [ 10241 ] |
Ken Fyten
made changes -
Project | ICEfaces [ 10021 ] | ICEpack [ 10040 ] |
Key |
|
|
Component/s | Core Extensions [ 10051 ] | |
Component/s | Framework [ 10013 ] | |
Fix Version/s | EE-3.0.0.GA [ 10261 ] | |
Fix Version/s | EE-3.0.0.GA [ 10262 ] | |
Fix Version/s | EE-2.0.0.GA_P01 [ 10271 ] | |
Affects Version/s | EE-2.0.0 [ 10256 ] | |
Affects Version/s | EE-2.0.0.GA [ 10263 ] |
Ted Goddard
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 |
There is probably a bug in the following Enterprise feature that was added:
http://jira.icefaces.org/browse/IPCK-245
The idea is that com.icesoft.facelets.HtmlTagDecorator causes HTML markup to expand into components so that nesting within dataTable facets is as expected.
Ted.