Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-41371

Problem using facelets in JSF2 with ViewHandler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 19.0, 20.0
    • Fix Version/s: 19.3, 20.0
    • Component/s: JSF
    • Labels:
      None
    • 19 status:
      Verified
    • Test Plan:
      Hide

      Check that current JSF tools don't crash with this change.

      Show
      Check that current JSF tools don't crash with this change.

      Description

      When using a tool with JSF2 + facelets, the requests crash with a NullPointerException.

      After some research and comparing with the solution implemented in -SAK-20086-: Allow use of JSF 1.2 or JSF 2.0 it seems that the problem is that jsf2 module is using a custom view handler that extends from javax.faces.application.ViewHandler and it crash when using facelets (.jsp is fine). 

      The recommended way to create a custom view handler since JSF 1.2 is using javax.faces.application.ViewHandlerWrapper as parent class. see

      This solution is also explained in "Sakai JSF 1.2 Tools." section of University of Murcia's upgrading experience from 2.7 to 2.9.

       

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ramongar Ramon Garcia Martinez
                  Reporter:
                  ramongar Ramon Garcia Martinez
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration