I am new in JSR 286, I have to portlets and i want to move from page in first protlet to page in the second protlet. how can i do that?
my scenario is: i have menu in a page contains ordered links in the first protlet, when i click on any link i want to view the page that related to this link in other portlet.
(the menu in first protlet and i want to view the pages of these links in the other portlet)
As Guy was insinuation but not actually saying, Portlets form part of a page but do not represent an actual page themselves. If you want to have a page with either PortletA or PortletB then you should have two portal pages and navigate between the two pages in order to show each portlet.
There are probably plenty of tutorials out there with examples of how to do it, but the thing to remember is that Inter-Portlet Communication is like communicating with radios... The Sending portlet creates an event which could be accessed by any portlet. The Receiving portlet is written to watch for the specific events that are relevant to it and will monitor those events.
So when someone selects an item on your menu portlet, you'll create a new event with the value of the selected event. The receiving portlet will see the event and get the parameter from it, and display the appropriate information.
David O'Meara wrote:As Guy was insinuation but not actually saying, Portlets form part of a page but do not represent an actual page themselves. If you want to have a page with either PortletA or PortletB then you should have two portal pages and navigate between the two pages in order to show each portlet.
I just asked because I wanted to know if Omar was looking to have the sending link actually navigate the user to a different page, or if it was all on the same page and the link was just going to trigger an action on the receiving portlet. It seems that both portlets will be on the same page and he just wants a selection from one portlet to reflect in the view of another.
the page code class for the other portlet to proccess event is
this is my protlet.xml
is this ok? or i need to do other thing? because when i tried to run this code, i clicked on the link of the jsp but no action performed and i didn't find Main class instance. (the print statement in the constructor didn't work)
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?