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

Support ExternalContext.getRequestContentLength()

    Details

      Description

      The FacesBridge must follow the requirements in the JSF 2.2 JavaDoc. However, rather than call ServletRequest.getContentLength() the FacesBridge must call ClientDataRequest.getContentLength(). It is only valid to call this method during the ACTION_PHASE and RESOURCE_PHASE of the portlet lifecycle. FacesBridge implementations may optionally save the value of ClientDataRequest.getContentLength() during the ACTION_PHASE so that it is available within the EVENT_PHASE, HEADER_PHASE, or RENDER_PHASE of the portlet lifecycle.

      TCK: During the ACTION_PHASE and also during an f:ajax submission (RESOURCE_PHASE), call ClientDataRequest.getContentLength() and ExternalContext.getRequestContentLength() and expect the result of both to be equal to each other.

        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:

                Packages

                Version Package
                facesbridge-tck-5.0.0
                facesbridge-spec-5.0.0