Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.10, 2.1.0
    • Component/s: Plugin - Portlet
    • Labels:
      None
    • Environment:

      Liferay 4.1.2, Fedora Core 4

    • Flags:
      Important

      Description

      It appears as though "specifying a method on a submit button" does now work.

      But, specifying a method for an action on a link does not work.

      <a href="<s:url action="ActionName" method="myMethod"/>">Click Me</a>

      We are using liferay 4.1.2. Upon page creation, the url looks something like this.

      http://database:8080/c/portal/layout?p_l_id=PRI.15.2&p_p_id=SampleStruts2Portlet_WAR_samplestruts2portlet&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=&p_p_col_pos=0&p_p_col_count=0&_SampleStruts2Portlet_WAR_samplestruts2portlet_struts.portlet.mode=view&_SampleStruts2Portlet_WAR_samplestruts2portlet_struts.portlet.action=%2Fview%2FActionName

      The parameter '_SampleStruts2Portlet_WAR_samplestruts2portlet_struts.portlet.action'=%2Fview%2FActionName and this link will not call the myMethod method, it will instead call the exectue method of ActionName, however if we change the url manually to

      http://database:8080/c/portal/layout?p_l_id=PRI.15.2&p_p_id=SampleStruts2Portlet_WAR_samplestruts2portlet&p_p_action=0&p_p_state=normal&p_p_mode=view&p_p_col_id=&p_p_col_pos=0&p_p_col_count=0&_SampleStruts2Portlet_WAR_samplestruts2portlet_struts.portlet.mode=view&_SampleStruts2Portlet_WAR_samplestruts2portlet_struts.portlet.action=%2Fview%2FActionName!myMethod, it will call the myMethod method.

        Issue Links

          Activity

          Brent Flaten created issue -
          Ted Husted made changes -
          Field Original Value New Value
          Fix Version/s 2.0.7 [ 21796 ]
          Ted Husted made changes -
          Link This issue is related to WW-1645 [ WW-1645 ]
          Hide
          Ted Husted added a comment -

          Bumping to 2.1.0 so that it can be reviewed with the portlet extraction.

          Show
          Ted Husted added a comment - Bumping to 2.1.0 so that it can be reviewed with the portlet extraction.
          Ted Husted made changes -
          Fix Version/s 2.1.0 [ 21794 ]
          Fix Version/s 2.0.7 [ 21796 ]
          Jeff Turner made changes -
          Workflow Struts [ 40938 ] Struts - editable closed status [ 44307 ]
          Nils-Helge Garli made changes -
          Component/s Portlet Integration [ 21201 ]
          Nils-Helge Garli made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Nils-Helge Garli added a comment -

          Backporting to 2.0.x

          Show
          Nils-Helge Garli added a comment - Backporting to 2.0.x
          Nils-Helge Garli made changes -
          Status Resolved [ 5 ] Reopened [ 4 ]
          Assignee Don Brown [ mrdon ] Nils-Helge Garli [ nilsga ]
          Resolution Fixed [ 1 ]
          Nils-Helge Garli made changes -
          Fix Version/s 2.1.0 [ 21794 ]
          Fix Version/s 2.0.10 [ 21850 ]
          Nils-Helge Garli made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 2.1.0 [ 21794 ]
          Status Reopened [ 4 ] Resolved [ 5 ]
          sudhish made changes -
          Link This issue contains WW-1653 [ WW-1653 ]
          Hide
          sudhish added a comment -

          I am not able to a call a method in my action class when I have moved to the portlet environment. It works fine in web based environment. As I am mainly using methods within my action class, can you help me in solving me the issue. Here I am attaching a sample code which I have used, but its not at all working.

          <s:url id="url" action="TaskSearch" method="searchTask" namespace="/ems"/>

          <s:a href="%

          {url}

          ">
          <img src="<s:url value="/FelixEms/images/search2.gif"/>" border="none"/></s:a>

          Show
          sudhish added a comment - I am not able to a call a method in my action class when I have moved to the portlet environment. It works fine in web based environment. As I am mainly using methods within my action class, can you help me in solving me the issue. Here I am attaching a sample code which I have used, but its not at all working. <s:url id="url" action="TaskSearch" method="searchTask" namespace="/ems"/> <s:a href="% {url} "> <img src="<s:url value="/FelixEms/images/search2.gif"/>" border="none"/></s:a>
          Antonio Petrelli made changes -
          Workflow Struts - editable closed status [ 44307 ] Struts - editable closed status (temporary) [ 46806 ]
          Antonio Petrelli made changes -
          Workflow Struts - editable closed status (temporary) [ 46806 ] Struts - editable closed status [ 50065 ]
          Jeff Turner made changes -
          Project Import Mon Feb 01 01:17:42 UTC 2010 [ 1264987062082 ]
          Lukasz Lenart made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          186d 2h 56m 1 Nils-Helge Garli 11/Aug/07 21:23
          Resolved Resolved Reopened Reopened
          12d 11h 48m 1 Nils-Helge Garli 24/Aug/07 09:12
          Reopened Reopened Resolved Resolved
          1h 15m 1 Nils-Helge Garli 24/Aug/07 10:27
          Resolved Resolved Closed Closed
          1892d 12h 41m 1 Lukasz Lenart 28/Oct/12 22:08

            People

            • Assignee:
              Nils-Helge Garli
              Reporter:
              Brent Flaten
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development