Forums

Home » Liferay Portal » English » 3. Development »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Don J. Joe
actionURL, processAction and POST method
April 1, 2009 9:47 AM
Answer

Don J. Joe

Rank: New Member

Posts: 2

Join Date: April 1, 2009

Recent Posts

Hello all.

I recently started really getting into Portlets, and made my first portlet with one HTML form on it to submit some stuff back to the portlet. However, the processAction method of my portlet was not called upon form submission. Then, I googled around a bit and found some discussions implying that I should send the form with the HTTP POST method, for the processAction to get executed.

Now I'm wondering if this is a requirement set by the JSR 286? I skimmed trough the spec, but couldn't find anything about this. So, what's the deal here? Is this a requirement by the spec, or is this something that the spec leaves for the portal implementor to choose on, or is Liferay in violation of the JSR 286 by not accepting form submissions with the GET method?
Manish Kumar Gupta
RE: actionURL, processAction and POST method
April 1, 2009 12:24 PM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 534

Join Date: May 15, 2008

Recent Posts

AFAIK, there is no such requirement from the JSR 286 spec.
A simple example can be a hyperlink with action URL.
Don J. Joe
RE: actionURL, processAction and POST method
April 2, 2009 7:38 AM
Answer

Don J. Joe

Rank: New Member

Posts: 2

Join Date: April 1, 2009

Recent Posts

Manish Kumar Gupta:
AFAIK, there is no such requirement from the JSR 286 spec.


Then what does this mean? Is liferay JSR286 compatible or not?
Milton Waddams
RE: actionURL, processAction and POST method
October 29, 2010 11:26 AM
Answer

Milton Waddams

Rank: New Member

Posts: 4

Join Date: October 29, 2010

Recent Posts

Apologies for digging up the old thread (and double post) but I'm trying to achieve the same. I have an implementation of GenericPortlet on Liferay. Everything works fine if I use POST. The processAction gets triggered, code works as expected. However, when I use GET, the processAction never gets triggered and execution goes straight to doView.

I found an article here

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Check+Method+on+Process+Action

Is the post relevant for this issue? If yes, then how do I go about disabling it for GenericPortlet? If not, is there a way for me use GET and processAction?

I'm using Liferay 6.0.5.

Thanks in advance.
Karthik Charles
RE: actionURL, processAction and POST method
December 23, 2010 12:41 AM
Answer

Karthik Charles

Rank: New Member

Posts: 7

Join Date: November 19, 2010

Recent Posts

Hi Milton Waddams,

I am facing the same issue, did you got any solution for this. Please help me.

Thanks,

Karthik
Vijay Raghuvanshi
RE: actionURL, processAction and POST method
December 29, 2011 4:20 AM
Answer

Vijay Raghuvanshi

Rank: New Member

Posts: 3

Join Date: December 21, 2011

Recent Posts

I am also facing same problem. Can anybody tell me how to enable get method in actionURL requests?
Venkat S
RE: actionURL, processAction and POST method
February 10, 2012 12:51 PM
Answer

Venkat S

Rank: New Member

Posts: 20

Join Date: October 27, 2009

Recent Posts

+1 with same problem. If someone was able to resolve this, please update