Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

Prevents Double submit without "action-url-redirect"

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Prevents Double submit without "action-url-redirect"
double submit actionurl
Answer
7/24/13 11:25 AM
I need to prevent double submit after ADD or EDIT record.

I know that xmlPortletFactory adds "<action-url-redirect>true</action-url-redirect>"  in liferay-portlet.xml to prevents double submit, but for other reasons, I had to disable action-url-redirect atribute.

I try to sendRedirect(request, response) at addXXXURL() process action but fails with :
"Set render parameter has already been called"

is there any workarround to prevent double submit without "action-url-redirect" attribute?

Thanks

RE: Prevents Double submit without "action-url-redirect"
Answer
7/24/13 2:47 PM as a reply to Anonymous.
   Hola,

        Maybe you can get more information from this thread:

http://www.liferay.com/community/forums/-/message_boards/message/493491

 
         Anyway, can you explay why you have to disable action-urlredirect? seems the right way of doing things.

 Saludos, Jack.

RE: Prevents Double submit without "action-url-redirect"
Answer
7/24/13 3:35 PM as a reply to Jack A. Rider.
This post didn't help me . If I use sendRedirect in xmlPortletFactory process action (addENTITY for example) => Exception :  "Set render parameter has already been called"

I need to disable action-url-redirect , if it's true, invoking portlet within modal windows doesn't work, action url like addEntityURL will not show ok.....for this reason I need to implement manual redirect.

Thanks for help