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

Cannot access to request parameters through the request variable in ADT

    Details

      Description

      Steps to reproduce:

      1. Create an Asset Publisher ADT
      2. Add the following script:

      ${paramUtil.getString(request, "paramName", "defaultValue")}
      

      3. Save changes
      4. Add an Asset Publisher portlet to a page
      5. Go to Asset Publisher Configuration > Display Settings and select the previously created ADT
      6. Save changes
      7. Add a param with name paramName and any value to the url. For instance:

      http://localhost:18080/?paramName=test
      

      Expected behavior: The Asset Publisher displays "test"
      Current behavior: The Asset Publisher displays "default" (the parameter is not found in the request)

      As a workaround, using themeDisplay.getRequest() instead of request works:

      ${paramUtil.getString(themeDisplay.getRequest(), "paramName", "defaultValue")}
      

        Attachments

          Activity

            People

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

              Dates

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