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

DefaultRestoreViewSupport.calculateViewId does not calculate viewId properly on portlet case

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.7
    • 1.2.8
    • Portlet_Support
    • None
    • liferay 5.2.3, myfaces portlet bridge 1.0.0-beta-2, myfaces core 1.2.7

    Description

      Testing the helloworld portlet archetype on liferay for many, many hours, I have seen a problem with the way it is resolved the view id

      In this configuration, the current algorithm resolves the view id using

      javax.servlet.include.path_info

      and

      javax.servlet.include.servlet_path

      But in portlet case, this values should not be taken into account. Instead, we have to check if this is a portlet request or not (it seems javax.portlet.faces.PORTLET_LIFECYCLE_PHASE is used to check if is a portlet request or not) and call:

      org.apache.myfaces.portlet.faces.context.PortletExternalContextImpl.getRequestPathInfo() or getRequestContextPath() when necessary.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: