Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Sergio Cabrera
Multiple Submits in one page
July 5, 2012 12:23 PM
Answer

Sergio Cabrera

Rank: Junior Member

Posts: 68

Join Date: December 19, 2011

Recent Posts

Hello. I need to make multiple submits at the same page and open the results in new windows/tabs. The idea is that I have a search form and I want to pass the values to several commercial pages, so I build the url in an action and do a response.sendRedirect. But when I do a submitForm then I get other submits disallowed and nothing happens.

Do I have to pass my parameters using javascript building my actionURL when the user clicks on the link/button? Can't I do several submits in one form?

Thanks in advance
David H Nebinger
RE: Multiple Submits in one page
July 5, 2012 1:19 PM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 8159

Join Date: September 1, 2006

Recent Posts

You can't do multiple form submits in a regular html form, so why do you think you can do so in a portlet page?
Jack Bakker
RE: Multiple Submits in one page
July 5, 2012 1:46 PM
Answer

Jack Bakker

Rank: Liferay Master

Posts: 706

Join Date: January 3, 2010

Recent Posts

Sergio, you would have to drive multiple post or get submits via client-side Javascript

this is not really a Liferay question as I read it
Mazhar Alam
RE: Multiple Submits in one page
July 5, 2012 10:55 PM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 188

Join Date: November 25, 2011

Recent Posts

Hi,
If you need multiple submits, you should try AJAX implementation. Hope that helps.
Sergio Cabrera
RE: Multiple Submits in one page
July 5, 2012 11:11 PM
Answer

Sergio Cabrera

Rank: Junior Member

Posts: 68

Join Date: December 19, 2011

Recent Posts

OK, thanks. Then the way is building an actionURL per link and open them in new windows. The question is I need to set the parameters with some field values when the user clicks on each link.