Hi All,
I am in the process of adding portlets after retrieving the portlets entries
from other psml. I am trying to add the portlets to "Home" Pane.
PSMLDocument is updated but it's not showing as a part of home page. Any
idea what's the problem?
Below is the code snippet.
 
Portlets rootSet = userProfile.getDocument().getPortlets();
     Portlets[] tabs = rootSet.getPortletsArray();
     Portlets tab = null;
     for (int count = 0; count < tabs.length; count++) {
      tab =tabs[count];
      if (tab.getTitle().equalsIgnoreCase("Home")) {
       Portlets[] plets = doc.getPortlets().getPortletsArray();
       for(int i=0; i < plets.length; i++) {
        plet = plets[i];
        entrs = plet.getEntriesArray();
        if (entrs != null && entrs.length >0) {
         for(int j=0; j < entrs.length; j++) {
          entry = entrs[j];
          tab.addEntry(entry);
         }
        }
       }
      }
     }
 
userProfile.store();
 
after the above step if I retrieve the psml document and print portlet
names, I am able to see all the portlets. but it not updating the PSML to
the Database properly. Any idea, what is missed here??
 
 
Regards,
Sunil.
 

Reply via email to