ICEfaces
  1. ICEfaces
  2. ICE-1615

Unable to get PortletPreferences within ICEfaces portlets

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6DR#4
    • Fix Version/s: 1.6DR#6, 1.6
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Win XP / Tomcat 5.5.17 / Liferay 4.3.0 (pre-release)

      Description

      In a typical JSF portlet, developers do the following in order to get PortletPreferences and PortletConfig:

      Object requestObject = facesContext.getExternalContext().getRequest();
      PortletRequest portletRequest = (PortletRequest) requestObject;
      PortletPreferences portletPreferences = portletRequest.getPreferences();

      However, the typcast is failing, because the facesContext.getExternalContext().getRequest() method is always returning an object of type ServletEnvironmentRequest.

      And of course, ServletEnvironmentRequest does not have a getPreferences() method.

        Issue Links

          Activity

          Hide
          Deryk Sinotte added a comment -

          This issue is a specific instance of a more general problem so I am marking this as a duplicate of the parent case.

          Show
          Deryk Sinotte added a comment - This issue is a specific instance of a more general problem so I am marking this as a duplicate of the parent case.
          Hide
          Deryk Sinotte added a comment -

          Marking as DUPLICATE

          Show
          Deryk Sinotte added a comment - Marking as DUPLICATE

            People

            • Assignee:
              Unassigned
              Reporter:
              Neil Griffin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: