Topic
1 reply Latest Post - ‏2013-06-12T11:24:47Z by Sonia.ibm
Sonia.ibm
Sonia.ibm
5 Posts
ACCEPTED ANSWER

Pinned topic Menu Component not rendering in jsp component

‏2013-06-12T08:00:53Z |

Hi,

I am using the code attached in the jsp file. I am using the code I found under the section

How to use the WCM API to render a Personalization (PZN) component

http://www-10.lotus.com/ldd/portalwiki.nsf/dx/WCM_API_Troubleshooting_How_To_and_Sample_Code#How+to+use+the+WCM+API+to+render+a+Personalization+%28PZN%29+component

 

When I use the jsp component I get the following error:

Render PZN Component: workspace.render(context, component)---->> IWKWC0031E: Content item not found /Radiofm/2fm/Highlights.

There are 5 content instances under the sitearea highlights. Below are the complete details of the logs I am trying to print on a JSP.

 

Log: Testing WCM API: Context Path = /Radiofm/2fm/Highlights
Log: Testing WCM API: docId = com.ibm.workplace.wcm.api.WCM_LibraryMenuComponent/Highlights1/9249f6fb-d151-4ad7-9bf9-47c4e38ade72/PUBLISHED
Log: Testing WCM API: Component name = Highlights1
Log: Testing WCM API: Highlights1 is an instance of LibraryComponent
Log: Testing WCM API:: ----context--> /Radiofm/2fm/Highlights
Log: Testing WCM API:: ----context--URL--> http://localhost:10039/sabc/wcm/connect//Radiofm/2fm/Highlights
Log: Testing WCM API:: ----component--> Highlights1
Render PZN Component: workspace.render(context, component)---->> IWKWC0031E: Content item not found /Radiofm/2fm/Highlights.

 

One more thing when I put the below url on the browser I see results. Please if someone can help me with the issue as this is little urgent.

http://localhost:10039/auto/jsp/highlights.jsp?cmpntid=9249f6fb-d151-4ad7-9bf9-47c4e38ade72&source=library&srv=cmpnt

 

regards,

Sonia.

 

 

 

Attachments

  • Sonia.ibm
    Sonia.ibm
    5 Posts
    ACCEPTED ANSWER

    Re: Menu Component not rendering in jsp component

    ‏2013-06-12T11:24:47Z  in response to Sonia.ibm

    Hi,

    it worked after adding Params into the context  for example:

        Map myparams=context.getRequestParameters();
        myparams.put("cmpntid", "9249f6fb-d151-4ad7-9bf9-47c4e38ade72"); // id of the component.
        myparams.put("source", "library");
        myparams.put("srv", "cmpnt");
        context.setRequestParameters(myparams);

    If thats the case then I dun understand why its not there in the technotes....

     

    regards,

    Sonia