Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0-beta-1
-
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.