Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3758

Check for responseComplete or renderResponse only if a phase listeners is used

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-beta
    • Component/s: JSR-344
    • Labels:
      None

      Description

      The javadoc of UIViewRoot says this:

      "... Take the following action regarding PhaseListeners.

      ... Initialize a state flag to false. ....

      ... Upon return from the listener, call FacesContext.getResponseComplete() and FacesContext.getRenderResponse(). If either return true set the internal state flag to true. ..."

      Here we have a small misunderstanding. The algorithm always check for responseComplete or renderResponse even if there is no phase listener set or there is no change on the state flag.

      This issue has minor priority, because it does not have any effect in normal situations, but it can be seen in some special tests.

      This affects 2.1 and 2.0 branches, but since it does not change anything it will be fixed only in 2.2.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: