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

setPortletMode and setWindowState aren't working correctly

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Tomcat 5.5
    • Branch Version/s:
      5.2.x, 5.1.x
    • Backported to Branch:
      Committed
    • Liferay Contributor's Agreement:
      Accept

      Description

      We have some problems with the ActionResponses setPortletMode and setWindowsState methods since we moved to liferay version 5.x (with Tomcat 5.5).
      The portal doesn't seem to manage the portlets window state and mode correctly. It looses the portlets window state and mode after they were set by the two methods by restoring it's previous settings.

      We are doing the following:

      1. process a portlet action and set the portlets window state and portlet mode in the portlets processAction method
      2. When the portlet is rendered for the first time directly after the state/mode change, then the portlet seems to be in the correct state and portlet mode. (getPortletMode / getWindowState are equal to the new settings )
      3. Afterwards - when the page is rendered again - then the portlet falls back to its previous window state and portlet mode (f.e. when you make a round trip to another tab)

      It worked well using the Liferay 4.x versions.

      kind regards

      Tobias

        Attachments

        1. liferayTestPortlet.tar.gz
          777 kB
        2. PortletModePatch.txt
          3 kB
        3. problem.zip
          1.41 MB
        4. SessionLayoutClone.java
          3 kB

          Issue Links

            Activity

              People

              • Votes:
                9 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  9 years, 28 weeks, 3 days ago

                  Packages

                  Version Package