Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2000

partial response writers should handle nesting of CDATA blocks.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-1
    • 2.0.0-alpha-2
    • Components
    • None

    Description

      The issue is with the use of <ui:debug> tag especially when it's placed inside a PPR-ed component (in Trinidad 2.x). The JSF UIDebug component encodes the script for this feature as follows [1] and this causes issues especially when rendering a partial page response as it's already inside another CDATA section.

      This used to a problem in Mojarra as well, but I could not reproduce this with a vanilla JSF app. Turns out this issue had been resolved recently in JIRA issue 1463 [2]. The fix was made to the RI's response writer (HtmlResponseWriter) so when they write out a script or a style element they make a note of whether they are already inside a CDATA section and if so remove the (nested) CDATA block from [1].

      But the above fix does nothing for a Trinidad application because we implement our own partial response writers. So this bug is to implement a similar fix.

      Attachments

        1. uiDebugInJSF.zip
          365 kB
          Pavitra Subramaniam
        2. uiDebugInTrin.zip
          5.80 MB
          Pavitra Subramaniam
        3. jira-2000-II.patch
          11 kB
          Pavitra Subramaniam

        Activity

          People

            Unassigned Unassigned
            pasubra Pavitra Subramaniam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: