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

          Neil Griffin created issue -
          Deryk Sinotte made changes -
          Field Original Value New Value
          Link This issue duplicates ICE-1625 [ ICE-1625 ]
          Deryk Sinotte made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Duplicate [ 3 ]
          Ken Fyten made changes -
          Fix Version/s 1.6 [ 10031 ]
          Ken Fyten made changes -
          Fix Version/s 1.6DR#6 [ 10090 ]
          Fix Version/s 1.6 [ 10031 ]
          Ken Fyten made changes -
          Fix Version/s 1.6 [ 10031 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: