Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Portlet Communication and passing parameters

 
nisreen hyari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
nisreen hyari
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic