Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-61

Struts bridge: setPortletMode and setWindowState to PortletURL in StrutsPortletURL.createPortletURL method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Invalid
    • 1.0.3
    • None
    • struts
    • None
    • tomcat 5.5.17, exo-portlet-container

    Description

      The method StrutsPortletURL.createPortletURL should begin with the code:
      ===\/=\/=\/==========
      RenderResponse renderResponse = (RenderResponse) request
      .getAttribute("javax.portlet.response");
      RenderRequest renderRequest = (RenderRequest) request
      .getAttribute("javax.portlet.request");

      PortletURL portletURL;

      if (actionURL)
      portletURL = renderResponse.createActionURL();
      else
      portletURL = renderResponse.createRenderURL();

      try

      { portletURL.setPortletMode(renderRequest.getPortletMode()); portletURL.setWindowState(renderRequest.getWindowState()); }

      catch (Exception e)

      { System.out.println("[ERROR] StrutsPortletURL - " + e.getCause()); }

      ===/\=/\=/\=========

      instead the code:
      ===\/=\/=\/=========
      RenderResponse renderResponse = (RenderResponse) request
      .getAttribute("javax.portlet.response");
      PortletURL portletURL;
      if (actionURL)
      portletURL = renderResponse.createActionURL();
      else
      portletURL = renderResponse.createRenderURL();
      ===/\=/\=/\=========

      Attachments

        Activity

          People

            Unassigned Unassigned
            exoman Alexey Zavizionov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: