Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

Commit

Permalink
Use cached applicationId instead of portlet api
Browse files Browse the repository at this point in the history
  • Loading branch information
phuong_vu authored and trongtt committed Aug 23, 2012
1 parent 1ca4591 commit 078b911
Showing 1 changed file with 2 additions and 9 deletions.
Expand Up @@ -1109,15 +1109,8 @@ public void processRender(WebuiRequestContext context) throws Exception
if(portalMode != UIPortalApplication.CONTAINER_BLOCK_EDIT_MODE &&
portalMode != UIPortalApplication.APP_BLOCK_EDIT_MODE && hasPermission())
{
org.gatein.pc.api.Portlet portlet = getProducedOfferedPortlet();
if (portlet != null)
{
PortletInfo info = portlet.getInfo();
String name = info.getApplicationName() + "/" + info.getName();

JavascriptManager jsMan = context.getJavascriptManager();
jsMan.loadScriptResource(ResourceScope.PORTLET, name);
}
JavascriptManager jsMan = context.getJavascriptManager();
jsMan.loadScriptResource(ResourceScope.PORTLET, getApplicationId());
}
super.processRender(context);
}
Expand Down

0 comments on commit 078b911

Please sign in to comment.