[jboss-user] [JBoss Portal] - Re: Portlet Instance ID

cpage do-not-reply at jboss.com
Wed Nov 26 06:47:09 EST 2008


I don't know if it's the good method but you can do something like that.

You need to cast the request to JBossRenderRequest and obtain the "PortalObjectContainer" (through injection or MBeanServer) :


  | PortalNodeImpl windowNodeImpl = (PortalNodeImpl) jbossRequest.getPortalNode();
  | PortalObjectId windowObjectId = windowNodeImpl.getObjectId();
  | Window window = (Window) portalObjectContainer.getObject(windowObjectId);
  | String instanceId = ((PortletContent) window.getContent()).getInstanceRef();
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4192426#4192426

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4192426



More information about the jboss-user mailing list