• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing user profile in portlets

 
Dorothy Taylor
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

We know that portlets on a web page cannot share session data. So in such a case, how can all portlets show user specific data respectively, as session is not common among them. I am using WPS 7.0.2
 
vijay sagar MAA
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Below are the different ways of sharing data between portlets. Just google and you will get the sample code.

Share Render parameters.
Share Data on the portletSession. Add attributes to the APPLICATION_SCOPE.
Share data by using portlet events
Share data through the cooperative portlets

Thanks,
Vijay
 
Dorothy Taylor
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using an APPLICATION_SCOPE we can just share data among portlets that are in the same war file. But when there are multiple portlets on a page i..e multiple war files, then how can every portlet know about the logged in user and display customized content. Does it mean that we should use IBM Puma API to do that?
 
Navin Manwatkar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which specification you are using? if it is JSR286 then you may go for "Public render parameter" or "eventing".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic