Skip to Content
author's profile photo Former Member
Former Member

get an IPortalComponentRequest in an AbstractCollectionRenderer


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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 03:38 PM

    HI Francesco,


    IResourceContext context= list.get(0).getContext();

    Object o = context.getObjectValue("");

    To get the Servlet Request. Unfortunatelly I do not know the objectValue for the portal component request.

    Hope it helps anyway,



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Markus,

      thank you for your answer.

      I solved the problem debugging the code.

      My solution is:

      IPortalComponentRequest request = (IPortalComponentRequest)this.getProxy().getDynamicPage().getPageContext().getRequest();

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.