Konrad Hosemann wrote:
Hi,

I'm experimenting with the profiler and custom criteria. In my tests the UserAttributeResolver never gets any attributes. The line:

context.getRequest().getAttribute(PortletRequest.USER_INFO);

always returns null. In a portlet (a WebWork action to be precise) the attributes are visible. The desired user attribute is defined in the portletapp's portlet.xml and a value is set in the user management portlet.

Is there anything I forgot? I'm using Jetspeed 2.0.1

regards,
konrad

Yeah, I think this one was never tested. It won't work as is.
Resolvers are running inside of the Jetspeed context, not in a portlet.
Thus we are not coding against the Portlet API.

context.getRequest() returns the Jetspeed servlet's request, not a portlet request. This attribute is only available in this manner using the Portlet API, on a PortletRequest.

Let me see if I can come up with a solution here shortly by hitting the UserInfoManager component directly...

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to