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

CCE: when running in portlet: Remove Servlet dependencies in FaceletViewDeclarationLanguage.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5-SNAPSHOT
    • 2.0.5
    • Portlet_Support
    • None

    Description

      In FaceletViewDeclarationLanguage.java: createResponseWriter(), getResponseEncoding(), handleFaceletNotFound(), and sendSourceNotFound() each cast to Servlet object. This causes ClassCastExceptions when run in a portlet environment. Each of these calls/casts can be removed and ExternalContext APIs can be used instead to get/set the needed information from the request or response object.

      Attachments

        1. jira-myfaces-3042.patch
          4 kB
          Michael Freedman

        Activity

          People

            lu4242 Leonardo Uribe
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: