[jboss-user] [JBoss Portal] - Re: I can't instantiate the InstanceImpl class.

FredF do-not-reply at jboss.com
Mon Apr 16 11:59:09 EDT 2007


hello.

I think I have solved it by doing this:

	
  |                 try{
  | 			w = page.createWindow("DocumentCell");
  | 		} catch ( Exception ex ) {
  | 			ex.printStackTrace();
  | 		}
  | 		InstanceImpl inst = new InstanceImpl();
  | 		String instanceId = "DocumentCell01";
  | 		inst.setInstanceId(instanceId);
  | 		inst.setPortletRef("DocumentPortlet");
  | 		w.setInstanceRef(instanceId);
Where page is an instance of org.jboss.portal.core.model.portal.Page
This way I create an instance and reference it by the window. Or have I missed something? 



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

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



More information about the jboss-user mailing list