Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-55

FacesContextFactoryImpl.getFacesContext takes a config as first parameter instead of a context as specified in JSF spec

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0
    • POST-1.0
    • jsf
    • None

    Description

      FacesContextFactoryImpl class that implements the JSF FacesContextFactory interface is not respecting the specification of the getFacesContext method.

      Indeed JSF spec says the signature of the method is the following:

      getFacesContext(java.lang.Object context, java.lang.Object request, java.lang.Object response, javax.faces.lifecycle.Lifecycle lifecycle)

      So you would expect to pass as the first object the PortletContext object (and that's actually what the reference implementation JSF bridge is expecting).

      However FacesContextFactoryImpl version is taking as the first parameter a PortletConfig instead of a PortletContext.

      This cause third party software to crash.

      Attachments

        1. FacesPortlet.java
          21 kB
          Christophe Jolif
        2. FacesContextFactoryImpl.java
          2 kB
          Christophe Jolif
        3. FacesContextFactoryImpl.java
          2 kB
          Christophe Jolif
        4. FacesContextFactoryImpl.java
          2 kB
          Christophe Jolif

        Activity

          People

            taylor David Sean Taylor
            cjolif Christophe Jolif
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: