Uploaded image for project: 'Pluto'
  1. Pluto
  2. PLUTO-440

portlet:actionURL not wrapping portlet:param

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.1.7
    • None
    • springframework 2.5 freemarker 2.3.8

    Description

      i'm not sure if it's general portlet taglib issue or just related to freemarker.

      i'm importing taglib to freemarker via: <#assign portlet=JspTaglibs["/WEB-INF/portlet.tld"]>

      then i use portlet tags in my template:
      <@portlet.actionURL><@portlet.param name="action" value="history"/></@portlet.actionURL>

      i get just action url without the parameter being appended.

      pluto-taglib/src/main/java/org/apache/pluto/tags/BasicURLTag.java doStartTag() method returns EVAL_PAGE, if i change this to EVAL_BODY_INCLUDE, suddenly tag starts to work ok - ie parameters get appended to the url.

      i'm not a jsp developer and don't know anything about tablib programming so i'm not sure if this fix is valid one.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            miceuz miceuz
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment