Topic
1 reply Latest Post - ‏2013-07-03T09:56:21Z by SandroSchwedler
gsager
gsager
1 Post
ACCEPTED ANSWER

Pinned topic PATH_INFO Render parameter is not available from the getParameter function

‏2012-06-28T17:06:51Z |
Using Web Experience factory portlet to use public render parameters from a WCM Rendering Portlet (JSR 286) on the same page
the portlet also supports a public render parameter from another portlet on the page that sends the data and can be retrieved by the renderRequest.getParameter function
it retireves the renderRequest object and then tried to get the rendering context by calling renderRequest.getParameter("PUBLIC_CONTEXT") . But there was no such parameter in the request. The rendering portlet was enabled for dynamic broadcasting.

So I would really like to know how to achieve this the "286" way so that I can get the rendering context within my own 286 portlets.

here is what is defined in the portlet.xml
<public-render-parameter>
<description>WCM public context</description>
<identifier>PUBLIC_CONTEXT</identifier>
<qname xmlns:wcm="http://www.ibm.com/xmlns/prod/datatype/content">wcm:context</qname>
</public-render-parameter>
<public-render-parameter>
<description>Shared path-info parameter of WebSphere Portal</description>
<identifier>PATH_INFO</identifier>
<qname xmlns:wcm="http://www.ibm.com/xmlns/prod/websphere/portal/publicparams">wcm:path-info</qname>
</public-render-parameter>
<public-render-parameter>
<identifier>OrderID</identifier>
<qname xmlns:qns="http://acme.example.com/portlet">qns:OrderID</qname>
</public-render-parameter>

the OrderID value is available from the parameters but not the wcm parameters.

Any ideas why the wcm parameters are not available?
  • SandroSchwedler
    SandroSchwedler
    1 Post
    ACCEPTED ANSWER

    Re: PATH_INFO Render parameter is not available from the getParameter function

    ‏2013-07-03T09:56:21Z  in response to gsager

    It works with the following settings in the Portlet Adapter builder call:

     

        <Input name = "PublicRenderParameters">
                        <top>
                            <param>
                                <identifier>PUBLIC_CONTEXT</identifier>
                                <namespace>http://www.ibm.com/xmlns/prod/datatype/content</namespace>
                                <name>context</name>
                            </param>
                            <param>
                                <identifier>PATH_INFO</identifier>
                                <namespace>http://www.ibm.com/xmlns/prod/websphere/portal/publicparams</namespace>
                                <name>path-info</name>
                            </param>
                            <param>
                                <identifier>CUSTOM_CONTEXT</identifier>
                                <name>custom-context</name>
                                <namespace>http://www.ibm.com/xmlns/prod/datatype/content</namespace>
                            </param>
                          
                        </top>
                    </Input>