07-26-07 12:22 AM
Hi guys,
I was able to use personalization rules based on request parameters to hide
or show a portlet on a page.
Now I'd like to understand if it's possible to accomplish the following scen
ario by using request attributes:
Portlet A and Portlet B are placed on the same page.
Portlet A sets a request attribute (request.setAttribute("myattribute","myva
lue").
Portlet B should be visible only when "myvalue" is a specific value.
I wasn't able to exploit built-in pzn object and rules to do that.
So, I tried to create a custom application object to extract the attribute f
rom the request and expose it to visibility rules.
The application object can access the personalization RequestContext object,
but it's not clear to me exactly the relation between PortletRequest,HttpSer
vletRequest and RequestContext.
I don't know if the problem is due to the order that Portal follows to rende
r portlets and invoke personalization rules.
Any help really appreciated.
[ Post a follow-up to this message ]
|