ICEfaces
  1. ICEfaces
  2. ICE-3992

component-showcase errors with compressDOM

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8DR#2
    • Fix Version/s: 1.8RC1, 1.8
    • Component/s: Sample Apps
    • Labels:
      None
    • Environment:
      ICEfaces component-showcase, compressDOM

      Description


      The CDATA sections in the Facelets version of the application appear to be passed into the DOM as text nodes, resulting in difficulties during DOM compression due to normalization.

      The candidate fix is to use < escaping rather than CDATA escaping.

        Activity

        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Ken Fyten made changes -
        Fix Version/s 1.8 [ 10161 ]
        Hide
        Mandeep Hayher added a comment -

        Tested successfully on ICEFaces 1.8 RC1 build2, jsp version component-showcase & Tomcat5.
        Showcase was tested with compressDOM=true.

        Show
        Mandeep Hayher added a comment - Tested successfully on ICEFaces 1.8 RC1 build2, jsp version component-showcase & Tomcat5. Showcase was tested with compressDOM=true.
        Ted Goddard made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.8DR#3 [ 10143 ]
        Resolution Fixed [ 1 ]
        Hide
        Ted Goddard added a comment -

        DOMResponseWriter would be able to collect open text sections as they are written, so a tree-level normalize() step is likely not necessary for the general case.

        Show
        Ted Goddard added a comment - DOMResponseWriter would be able to collect open text sections as they are written, so a tree-level normalize() step is likely not necessary for the general case.
        Hide
        Ted Goddard added a comment -

        common-web/WEB-INF/includes/content/en/header.jspx contains the line

        xmlns:jsp="http://java.sun.com/JSP/Page"

        This namespace is unused and is propagated into the DOM resulting in errors since namespacing for DOM compression is not enabled. It may be possible to enable namespaces in DOM compression, however the namespace is not desired in the output, so this will simply be changed in the input document.

        Show
        Ted Goddard added a comment - common-web/WEB-INF/includes/content/en/header.jspx contains the line xmlns:jsp="http://java.sun.com/JSP/Page" This namespace is unused and is propagated into the DOM resulting in errors since namespacing for DOM compression is not enabled. It may be possible to enable namespaces in DOM compression, however the namespace is not desired in the output, so this will simply be changed in the input document.
        Ted Goddard created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #18208 Thu Jan 22 10:04:30 MST 2009 ted.goddard using ampersand escaping rather than CDATA for compressDOM (ICE-3992)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets-enh/web/WEB-INF/includes/templates/page-template.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/jsp/web/showcase.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/facelets/web/WEB-INF/includes/templates/page-template.jspx
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #18207 Thu Jan 22 10:03:33 MST 2009 ted.goddard removing unused jsp namespace (ICE-3992)
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-web/WEB-INF/includes/content/es/header.jspx
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/component-showcase/common-web/WEB-INF/includes/content/en/header.jspx

          People

          • Assignee:
            Unassigned
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: