Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-1277

Failure in TCK TestPage202: implementsBridgeWriteBehindResponseTest due to ExternalContext.getResponse() not returning an object instance that implements BridgeWriteBehindResponse

    Details

      Description

      Note that the TCK "implementsBridgeWriteBehindResponseTest" and "JSP_ELTest" are designed such that they expect the bridge to implement the JSP

      {@link Bridge#AFTER_VIEW_CONTENT}

      feature (ability to interleave native HTML markup with the markup generated by JSF component). However, as documented in the BridgeWriteBehindResponseMimeImpl class-level JavaDoc, with JSF2 it is possible to have the JSF implementation (Mojarra or MyFaces) handle the entire interleaving process by itself. A by-product of this is that ExternalContext.getResponse() is returning an HttpServletResponse during the RENDER_PHASE of the JSF lifecycle for the benefit of Mojarra/MyFaces. However, this causes a ClassCastException during execution of the aforementioned TCK tests.

      This task involves creating a special ExternalContext wrapper that will return a PortletResponse that implements BridgeWriteBehindResponse when the TCK is running.

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: