Skip to Content
0
Former Member
Oct 14, 2005 at 02:01 PM

get an IPortalComponentRequest in an AbstractCollectionRenderer

38 Views

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.