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

Soy portlets using HTML parameters fail rendering

    Details

      Description

      When an enum is added to a SoyContext or template the rendering fails with an exception.


       

      Steps to reproduce in master:

      1. Start portal
      2. Deploy attached JAR file to Liferay (overwriting portal's provided hello soy bundle)
      3. Go to http://localhost:8080/
      4. Add a Hello Soy Portlet to the page

      Note for 7.0.x: use files prefixed with "7.0-" and remove that prefix before deployment to avoid duplicates.

      Expected results:

      1. Portlet should be rendered

      Actual results:

      1. Portlet is not rendered and exceptions are seen in the server console

       

      Steps to reproduce in 7.0:

      1. Start portal
      2. Expand soy-params-7-0.zip
      3. Deploy the JAR file inside the build/lib subfolder of the expanded ZIP
      4. Navigate to http://localhost:8080
      5. Add a Sample Portlet to the page

      Expected results:

      1. Portlet should render the strings:
        Enum: VALUE
        HTML: bold

      Actual results:

      1. Portlet renders a Java object dump instead of bold

       

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  40 weeks ago

                  Packages

                  Version Package
                  7.0.0 DXP FP64
                  7.1.X
                  Master