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

Init parameter "view-template" is ignored by the MVCPortlet when using MVCRenderCommands

    Details

    • Fix Priority:
      3

      Description

      If you have a portlet with MVC render commands, and you set the init param "view-template" to be any of them different to "/", the MVCPortlet will ignore it.

       

      Steps to test it:

      • develop a new MVC portlet that uses MVC Render Commands.
         
      • create at least 2 MVC Render Commands with paths "/" and "/initial"
         
      • If you put the portlet in a page, just loading the page will show the default view of the portlet, which will be "/" by default.
         
      • Then, if you set the init param "view-template" to "/initial" in your portlet class, loading the page should render this render command instead. However, the render command with "/" will be always rendered.
         

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 26 weeks, 2 days ago

                Packages

                Version Package