Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-14727

StrutsPortlet loses it's render parameters

    Details

    • Liferay Contributor's Agreement:
      Accept

      Description

      To reproduce :

      1. create a page and add the calendar portlet and announcements portlet to it
      2. switch the calendar to the month view
      3. click manage entries, then add entry in the announcements portlet
      4. don' t enter anything in the announcement form, press save, then when the validation errors show, press save again

      The calendar will now be reset to the summary view

      The problem lies in the include method of com.liferay.portlet.StrutsPortlet at the end of the method you find the following snippet

      protected void include(
      RenderRequest renderRequest, RenderResponse renderResponse)
      throws IOException, PortletException {

      .....
      if (copyRequestParameters)

      { PortalUtil.clearRequestParameters(renderRequest); }

      }

      So on render the request parameters are cleared. but infact this is not always the case because the clearRequestParameters method only clears the render parameters when themeDisplay.isLifecycleAction() is true. This will be the case when the p_p_lifecycle=1 parameter will be present in the url which is the case when you execute any action via an actionURL in the portlet

        Attachments

          Activity

            People

            Assignee:
            igor.spasic Igor Spasic (Inactive)
            Reporter:
            jelmer Jelmer Kuperus (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 46 weeks, 2 days ago

                Packages

                Version Package
                --Sprint 12/11
                6.1.0 CE RC1