Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.1.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Win XP
    • Similar Issues:
      Show 5 results 

      Description

      The Action URL is incorrectly generated.
      JSP Code excerpt:
      Click <a href="<portlet:actionURL name="action1" />">here</a> to process action 1<br />
      Result: action is null (checked in URLgenerated and in the portlet's processAction method).
      Workaround: explicitly add the parameter:
      Click <a href="<portlet:actionURL name="action1"><portlet:param name="javax.portlet.action" value="action1" /></portlet:actionURL>">here</a> to process action 1<br />
      Result: action is "action1" (checked in URLgenerated and in the portlet's processAction method).
      For your information, it occurs in a JSR286 portlet.

      Thank you
      Hervé

        Activity

        Hide
        Hervé Ménage added a comment -

        Hello,

        Liferay 5.0.1 RC has the same bug.
        Regards
        Hervé

        Show
        Hervé Ménage added a comment - Hello, Liferay 5.0.1 RC has the same bug. Regards Hervé
        Hide
        Samuel Kong added a comment -

        "name" is not valid attribute for the <portlet:actionURL> tag, so the jsp code excerpt will not work.

        Show
        Samuel Kong added a comment - "name" is not valid attribute for the <portlet:actionURL> tag, so the jsp code excerpt will not work.
        Hide
        Hervé Ménage added a comment -

        Hello,

        Then I do not understand the portlet specification (JSR 286): "PLT.26.2 ActionURL Tag" where the optional attributes are: windowsState, portletMode, var, secure, copyCurrentRenderParameters, escapeXml and name.

        name: specifies the name of the action [...] setting this name will result in adding a parameter to this action URL with the name "javax.portlet.action".

        Best regards
        Hervé

        Show
        Hervé Ménage added a comment - Hello, Then I do not understand the portlet specification (JSR 286): "PLT.26.2 ActionURL Tag" where the optional attributes are: windowsState, portletMode, var, secure, copyCurrentRenderParameters, escapeXml and name. name: specifies the name of the action [...] setting this name will result in adding a parameter to this action URL with the name "javax.portlet.action". Best regards Hervé
        Hide
        Samuel Kong added a comment -

        I apologize. I was referencing an earlier draft of the 286 specification.

        Show
        Samuel Kong added a comment - I apologize. I was referencing an earlier draft of the 286 specification.
        Hide
        Raymond Auge added a comment -

        Fixed!

        Show
        Raymond Auge added a comment - Fixed!

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Structure Helper Panel