A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
Portals and Portlets
Portlet WindowURL to render a portlet that is in different page
Joined: Sep 08, 2011
Jan 14, 2013 08:56:08
I am having a portlet `PortletA` in Page1 and PortletB in Page2
On submitting the form in `PortletA`, I am trying to invoke/render `PortletB` using `WindowURL`. But I am not successful and remain in `PorltetA` itself.
This is how I am doing...
<%@ page language="java" contentType="text/html;charset=UTF-8" import="com.bea.portlet.WindowURL" %> <% WindowURL url = WindowURL.createWindowURL(request, response, "/PortletB"); System.out.println("url:" + url.toString()); %> <form id="id1" action ="<%= url.toString() %>" > <input type="submit" value="Click"> </form>
url value that is getting printed is -
I also tried `<portlet:renderURL>`,
<portlet:renderURL var="maxhelp" windowLabel="PortletB" />
But still same.
Please let me know if anything wrong.
Joined: May 14, 2013
May 14, 2013 05:26:11
If you want to learn ipc portlet in liferay based on event phase than you can check following link.
May be it will help you.
Ipc portlet in liferay
I agree. Here's the link:
- it saves me about five hours per week
subject: Portlet WindowURL to render a portlet that is in different page
Pop ups in jsr 168 portlet
liferay portlet - form parameters missing from request
navigation between the pages in different portlets using JSR286
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013