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

Bean portlet @HeaderMethod does not accept zero args and does not allow for a String return value

    Details

      Description

      Problem Description

      According to Section 4.8.4 of the Portlet 3.0 Specification, bean portlet methods annotated with @HeaderMethod can have one of the following 3 signatures:

      public void <methodName>(HeaderRequest, HeaderResponse) 
      
      public String <methodName>() 
      
      public void <methodName>() 
      

      Currently Liferay Portal only supports the first signature.

      Steps to Reproduce

      • Deploy the attached portlet WAR to $LIFERAY_HOME/deploy and add the portlet named "LPS-91589" to a portal page.
      • Reload the portal page

      Expected Results

      Two alerts will popup indicating:

      • "string return value made it into the head section"
      • "header.jspx made it into the head section"

      Actual Results

      The alerts do not popup.

        Attachments

          Activity

            People

            • Assignee:
              sharry.shi Sharry Shi
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
              Recent user:
              Brian Chan
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                23 weeks, 5 days ago

                Packages

                Version Package
                7.1.X
                Master