Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Showing 21 - 25 of 25 results.
of 2
Marco Weiland
RE: Action Classes with MVCPortlet
December 5, 2012 10:28 AM
Answer

Marco Weiland

Rank: Junior Member

Posts: 26

Join Date: October 28, 2007

Recent Posts

you can do it with the actioncommandchain, i think.

<portlet:actionURL var="actionCommandUrl">
<portlet:param name="<%=ActionRequest.ACTION_NAME %>" value="Article, Order, Balance"></portlet:param>
</portlet:actionURL>


Where ArticleActionCommand, OrderActionCommand and BalanceActionCommand are different actionclasses inside the
actionpackage.
Brian Scott Schupbach
RE: Action Classes with MVCPortlet
December 5, 2012 2:27 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 329

Join Date: October 23, 2008

Recent Posts

Thanks, Marco! That is good to know.

Brian
Tanaji Londhe
RE: Action Classes with MVCPortlet
January 15, 2013 4:56 AM
Answer

Tanaji Londhe

Rank: Regular Member

Posts: 196

Join Date: April 25, 2012

Recent Posts

Hi All,
Is it possible to use my custom method name instead of using
public boolean processCommand(PortletRequest actionRequest, PortletResponse actionResponse)
throws PortletException {
-------------------------
}

e.g I want to separate this method into another action class from my portlet class.
public void myActionMtd(ActionRequest actionRequest,
ActionResponse actionResponse) throws IOException, PortletException {
---------------------------
}
I have done this by using ActionCommand interface, but i want to use my custom name for that method instead of processCommand.
Marco Weiland
RE: Action Classes with MVCPortlet
January 15, 2013 5:06 AM
Answer

Marco Weiland

Rank: Junior Member

Posts: 26

Join Date: October 28, 2007

Recent Posts

from my point of view, thats breaking the nice encapsulation and separation of concerns the actioncommand pattern follows. looking at the implementation of the actioncommand i dont find any way to do that; let me know, if you find something, but that possibility will cause some method overload like in portletclass imho.
Tanaji Londhe
RE: Action Classes with MVCPortlet
January 15, 2013 9:48 AM
Answer

Tanaji Londhe

Rank: Regular Member

Posts: 196

Join Date: April 25, 2012

Recent Posts

Hi Macro,
Thanks for reply, sure I will update, if I get solution for this problem.
Showing 21 - 25 of 25 results.
of 2