Reputation: 47
I use Liferay portlet bundle 6.2 (Tomcat) and Liferay IDE(eclipse). I created one Liferay Plugin Project. I save some data by using Portlet Preferences in this project and I created one button its calls "Search". When I click the button search, it will go to the other jsp. But, I will, when I click this button, that its go to two other jsp's instead one jsp. How I can to that?
Can I create one button with two onclick definition or can I created two URL's with the same var definition for one button?
Is there any possible to create two URL for one button? I'm pleased for sample example.
Thank you
Upvotes: 0
Views: 152
Reputation: 48057
Independent of Liferay, a single button in an HTML form can "have" only a single URL or action handler (e.g. onclick
). That being said: Nothing keeps you from writing Javascript code that will determine which URL a form should be submitted to, update the form and "manually" (e.g. scripted) submit the form to that URL.
As I said: This is totally HTML/JS, not at all Liferay specific. And of course you can use as many <portlet:actionURL var="url1">...</portlet:actionURL>
constructs as you like.
Upvotes: 4