on 10-14-2005 3:01 PM
Hi,
We have developed a custom collection renderer based on AbstractCollectionRenderer and we need to get the request.
In EP5 we have found this solution:
PortalServletRequestWrapper stubRequest = (PortalServletRequestWrapper) this.getProxy().getDynamicPage().getPageContext().getRequest();
IPortalComponentRequest request = (IPortalComponentRequest) stubRequest.getAttribute("com.sapportals.portal.prt.component.IPortalComponentRequest");
but now, in nw04 sp14 this code doesn't work because it generate a ClassCastException.
Any ideas?
Thank you in advance.
HI Francesco,
try
IResourceContext context= list.get(0).getContext();
Object o = context.getObjectValue("http://sapportals.com/xmlns/cm/httpservletrequest");
To get the Servlet Request. Unfortunatelly I do not know the objectValue for the portal component request.
Hope it helps anyway,
Cheers,
M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.