aspose file tools
The moose likes Portals and Portlets and the fly likes Portlet Communication and passing parameters Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Portlet Communication and passing parameters" Watch "Portlet Communication and passing parameters" New topic
Author

Portlet Communication and passing parameters

nisreen hyari
Greenhorn

Joined: Aug 07, 2009
Posts: 4
i am facing the following problem, and i really need your help
I am developing a portlet application using RAD 7.5, on IBM portal 6.1, JSR 286
I have a list of services, each service is displayed as a link on Portlet A, when the user clicks any Link, i must go to another Portlet B where i also need the ID of the selected service, i am done with the navigation part but i am unable to get the serviceID in Portlet B (can any one help me in this), i really need a way to call a server method on user click where i can put the service id in the portletSession, but i don't know how to do this when using <hxutputLinkEx >, i tried to use <h:commandLink> but the navigation is no longer working
the following is the JSF page containing the links


and the code where the URL is generated ServicesHomeBean.java


i even tried to use events but the processAction method is not getting called at all!!!
please any ideas..........



Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper

Joined: Aug 26, 2006
Posts: 4967

Are the portlets part of the same war file?

Portlets in the same war can share information through the Application Scope of the PortletSession. If not, you'll need to use another communication device OUTSIDE of JSR168, as portlets outside of a common war file have no inherent communication mechanism. This is true for Servlets and JSPs in non-portlet applications as well.

An IBM PortletService or even using common database tables can be used to achieve this.

-Cameron McKenzie


Author of Hibernate Made Easy, What is WebSphere???, JSF 2.0 Made Easy and the SCJA Certification Guides
nisreen hyari
Greenhorn

Joined: Aug 07, 2009
Posts: 4
yes they are part of the same war, my problem is that i need a way to put the "serviceID" parameter inside the portlet session when the user click the link
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Portlet Communication and passing parameters
 
Similar Threads
My binding with datatable give me null ate the backing bean, do i miss some thing
problem JSF - datatable from DB
rendering each child t:tree node in seperate column in panel grid
Row Actions on DataTable
Providing anchor to columns in a datatable