Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Invalid
-
Affects Version/s: 1.7DR#3, 1.7Beta1
-
Fix Version/s: 1.7
-
Component/s: Framework
-
Labels:None
-
Environment:Any
-
Affects:Compatibility/Configuration
-
Workaround Exists:Yes
-
Workaround Description:HideIt's not really valid to have JSP directives in a Facelets page. There are two main techniques for using a <jsp:root> tag, for IDE code completion, such that Facelets will strip it out. Failing to use these techniques isn't really supported. In fact, we have
ICE-1279so as to warn developers of their mistake of having a JSP directive remain in the component tree. This particular Javascript failure is not really the issue. The solution is to do one of the following:
A. Put the <jsp:root> tag outside of a <ui:composition> tag, so that it will simply be discarded.
B. Use <jsp:root jsfc="f:view">, so that the <jsp:root> tag will become an <f:view> tag.ShowIt's not really valid to have JSP directives in a Facelets page. There are two main techniques for using a <jsp:root> tag, for IDE code completion, such that Facelets will strip it out. Failing to use these techniques isn't really supported. In fact, we have ICE-1279 so as to warn developers of their mistake of having a JSP directive remain in the component tree. This particular Javascript failure is not really the issue. The solution is to do one of the following: A. Put the <jsp:root> tag outside of a <ui:composition> tag, so that it will simply be discarded. B. Use <jsp:root jsfc="f:view">, so that the <jsp:root> tag will become an <f:view> tag.
Description
This issue did not occur in 1.7DR#2 and below.
-
Hide
- Test_RendererWithTree.war
- 6.32 MB
- Jacky Lee
-
- META-INF/MANIFEST.MF 0.0 kB
- WEB-INF/classes/.../NodeUserObject.class 5 kB
- WEB-INF/classes/com/.../tree/Time.class 0.6 kB
- WEB-INF/classes/com/.../tree/TreeBean.class 9 kB
- WEB-INF/classes/.../InterceptListener.class 0.7 kB
- WEB-INF/.../SessionTimeoutFilter.class 3 kB
- WEB-INF/faces-config.xml 2 kB
- WEB-INF/html_basic.tld 244 kB
- WEB-INF/jsf_core.tld 25 kB
- WEB-INF/web.xml 4 kB
- index.jsp 0.2 kB
- js/menuTree.js 2 kB
- main.jspx 5 kB
- start.jspx 0.8 kB
- temp.jspx 1 kB
- WEB-INF/lib/backport-util-concurrent.jar 319 kB
- WEB-INF/lib/commons-beanutils.jar 184 kB
- WEB-INF/lib/commons-collections.jar 558 kB
- WEB-INF/lib/commons-digester.jar 140 kB
- WEB-INF/lib/commons-discovery.jar 70 kB
- WEB-INF/lib/commons-el.jar 110 kB
- WEB-INF/lib/commons-fileupload.jar 52 kB
- WEB-INF/lib/commons-logging.jar 52 kB
- WEB-INF/lib/el-api.jar 24 kB
- WEB-INF/lib/el-ri.jar 97 kB
- WEB-INF/lib/icefaces.jar 745 kB
- WEB-INF/lib/icefaces-comps.jar 1.48 MB
- WEB-INF/lib/icefaces-facelets.jar 593 kB
- WEB-INF/lib/jsf-api.jar 356 kB
- WEB-INF/lib/jsf-impl.jar 778 kB
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
It looks like com.sun.facelets.compiler.StartElementInstruction is trying to insert the jsp:root tag directly into the HTML markup (using the ResponseWriter).
It's not really valid to have JSP directives in a Facelets page. There are two main techniques for using a <jsp:root> tag, for IDE code completion, such that Facelets will strip it out. Failing to use these techniques isn't really supported. In fact, we have ICE-1279 so as to warn developers of their mistake of having a JSP directive remain in the component tree. This particular Javascript failure is not really the issue. The solution is to do one of the following:
A. Put the <jsp:root> tag outside of a <ui:composition> tag, so that it will simply be discarded.
B. Use <jsp:root jsfc="f:view">, so that the <jsp:root> tag will become an <f:view> tag.
attached testcase