Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1331

ExternalContextUtils.getRequestType() doesn't work in a portlet environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.7
    • 1.1.8
    • Portlet_Support
    • None
    • WebSphere Portal 6.0
      MyFaces 1.1.6
      Tomahawk 1.1.7
      Portals Bridges 1.0.4

    Description

      ExternalContextUtils.getRequestType(Object config, Object request) signature doesn't correspond to what's used in TomahawkFacesContextFactory.getFacesContext(): The called method requires a config and a request while it's invoked using a context and a request.
      ==> This always leads to a ClassCastException at TomahawkFacesContextFactory.getFacesContext()#64.

      The invoked method seems to have to be fixed something like this:
      class ExternalContextUtils:
      public static final RequestType getRequestType(Object context, Object request) {
      if(_PORTLET_CONTEXT_CLASS != null)
      {
      if (_PORTLET_CONTEXT_CLASS.isInstance(context))
      {
      // blablabla
      }

      Attachments

        1. TOMAHAWK-1331-v2.patch
          3 kB
          Leonardo Uribe
        2. TOMAHAWK-1331.patch
          2 kB
          Leonardo Uribe
        3. TOMAHAWK-1331.log
          38 kB
          Romain Seguy

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              rseguy Romain Seguy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: