ICEfaces
  1. ICEfaces
  2. ICE-2995

Add new outputHtml, outputBody and outputHead jsf components

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      any
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration

      Description

      In order for jsf only components web pages, we need
      ice:html, ice:head; ice:body.

      Firstly, a structure for these three components are need.
      Secondly, we need the detailed required attributes for body or head later on...

        Issue Links

          Activity

          Hide
          Frank Ye added a comment -

          revert the definition for faces-config.xml as well as extended-faces-config.xml.

          Under tomcat 5.5 with jsf11, with no html, body, head jsf component, strangely the body content does not have output. Possible related the XmlTag , componentId. not sure the details.

          Show
          Frank Ye added a comment - revert the definition for faces-config.xml as well as extended-faces-config.xml. Under tomcat 5.5 with jsf11, with no html, body, head jsf component, strangely the body content does not have output. Possible related the XmlTag , componentId. not sure the details.
          Hide
          Ken Fyten added a comment -

          We need to carefully consider the ramifications for these components of some of the specialized handling by the framework of HEAD and BODY elements in the page.

          Show
          Ken Fyten added a comment - We need to carefully consider the ramifications for these components of some of the specialized handling by the framework of HEAD and BODY elements in the page.
          Hide
          Frank Ye added a comment -

          icons required for html, body, head components.

          Show
          Frank Ye added a comment - icons required for html, body, head components.
          Hide
          yip.ng added a comment -

          The problem of the component showcase coming up blank is fixed, but once I start to use the <ice:head> tag, I get the following exception:

          WARNING: executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@1f7abae) threw exception
          org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
          at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:419)
          at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:275)
          at com.icesoft.faces.context.DOMContext.setRootNode(DOMContext.java:267)
          at com.icesoft.faces.context.DOMContext.createRootElement(DOMContext.java:286)
          at com.icesoft.faces.component.ext.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:25)
          at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785)
          at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543)
          at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
          at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550)
          at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520)
          at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161)
          at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
          at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
          at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
          at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18)
          at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25)
          at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161)
          at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36)
          at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30)
          at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48)
          at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50)
          at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19)
          at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
          at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29)
          at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139)
          at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
          at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
          at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
          at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Thread.java:595)

          Show
          yip.ng added a comment - The problem of the component showcase coming up blank is fixed, but once I start to use the <ice:head> tag, I get the following exception: WARNING: executePhase(RENDER_RESPONSE 6,com.icesoft.faces.context.BridgeFacesContext@1f7abae) threw exception org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted. at com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.insertBefore(CoreDocumentImpl.java:419) at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(NodeImpl.java:275) at com.icesoft.faces.context.DOMContext.setRootNode(DOMContext.java:267) at com.icesoft.faces.context.DOMContext.createRootElement(DOMContext.java:286) at com.icesoft.faces.component.ext.renderkit.HeadRenderer.encodeBegin(HeadRenderer.java:25) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:785) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:543) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:550) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:520) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:161) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30) at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:139) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)
          Hide
          yip.ng added a comment -

          Changed to get/create the proper node from the DOM in the ResponseWriter and set the DOM cursor to the right node.

          Show
          yip.ng added a comment - Changed to get/create the proper node from the DOM in the ResponseWriter and set the DOM cursor to the right node.
          Hide
          yip.ng added a comment -

          Need to change the names of the component because the parser seems to confuse them with the standard html, head and body tags.

          Show
          yip.ng added a comment - Need to change the names of the component because the parser seems to confuse them with the standard html, head and body tags.
          Hide
          Ken Fyten added a comment -

          Names changed from ice:html, ice:body, and ice:head to ice:outputHtml, ice:outputBody, and ice:outputHead to avoid a JSP parser bug.

          Show
          Ken Fyten added a comment - Names changed from ice:html, ice:body, and ice:head to ice:outputHtml, ice:outputBody, and ice:outputHead to avoid a JSP parser bug.
          Hide
          Mark Collette added a comment -

          The parser bug is explained in: ICE-3205.

          Show
          Mark Collette added a comment - The parser bug is explained in: ICE-3205 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Frank Ye
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: