I need to create a portlet that is going to go on the same page as the "User
Browser" and "User Detail Information" portlets.  It needs to display
information based on the user selected.  Reviewing the code for these, the
"User Detail Information" portlet uses:

        String userName = (String)PortletMessaging.receive(request,
                                SecurityResources.TOPIC_USERS,
SecurityResources.MESSAGE_SELECTED);

to retrieve the username selected in the "User Browser" portlet.

I am trying to make the same call in my own portlet that is in a different
web app.  Looking at the code for PortletMessaging, all it is really doing
is getting the attribute "users:selected" from the PortletSession,
APPLICATION_SCOPE.  So I would expect it to work in my portlet as well.  But
when I look at the session during my doView function it shows things like
"cps:UserManager" but not the "users:selected" value.

The "User Detail Information" porttlet uses PortletMessaging.receive and not
PortletMessage.consume so I would expect the value to still be in the users
session.  My Tomcat server.xml already has emptyServerPath="true" so I'm not
sure why this wouldn't work.  Any ideas?

--
Thanks,
Michael B

Reply via email to