• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

wpsUrlGeneration in websphere portal 6

 
viswam konkepudi
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Im migrating the code from websphere portal 5 to portal 6,

and i have the code for url generation for portal 5
like this

public static Composition getPageByUniqueName(String uniqueName)
{
Composition result = null;
PageInstance page = null;
com.ibm.portal.ObjectID id = IdentificationMgr.getIdentification().resolveUniqueName(uniqueName);
try
{
if(id != null)
{
page = PageInstance.find(id);
result = new Composition(page);
}
}
catch(DataBackendException ex)
{
Utility.logError(3, "in WPSUtilities.getPageByUniqueName", ex, "com.tadawul.common");
}
return result;
}


<wps:urlGeneration contentNode="wps.tadawul.pages.home"
portletWindowState="Normal" pacCheck="NoCheck">

<A href="<% wpsURL.write(out); %>"><%=LocaleHelper.getTitle((Localized)getPageByUniqueName("wps.tadawul.pages.home"), request)%>

</A>

</wps:urlGeneration>

Now while migrating the

page = PageInstance.find(id);
result = new Composition(page);

this method find() and Composition(page) is not avalable.,

Could you please help me to get the same functionality with websphere portal 6

Thanks In Advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic