[jboss-dev-forums] [Design of JBoss Portal] - Re: LayouStrategy and StrategyResponse API

julien@jboss.com do-not-reply at jboss.com
Mon Jan 22 09:28:54 EST 2007


I have added in the actual trunk an attempt to match the explanations. It is done by coding an interceptor that goes on the command stack of the portal. 

For now the code can be found in org.jboss.portal.core.WindowInterceptor, but it's likely that it will be removed (because it is not very useful for the actual portal). For now it is here as an attempt to show how to code that kind of stuff.

Later we will see if we can introduce an API that provides those semantics wrapping the internal of portals (but doing a good API is hard...). It could be part of the actual IPC API if we introduce a PageEvent but note sure of that.

To activate it you need to modify in jboss-portal.sar/META-INF/jboss-service.xml

Add in the section <!-- Command stack --> the mbean :

  |    <mbean
  |       code="org.jboss.portal.core.WindowInterceptor"
  |       name="portal:service=Interceptor,type=Command,name=Window"
  |       xmbean-dd=""
  |       xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
  |       <xmbean/>
  |    </mbean>
  | 

and modify the portal:service=InterceptorStackFactory,type=Command mbean to add a dependency :


  | <depends-list-element>portal:service=Interceptor,type=Command,name=Window</depends-list-element>




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

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



More information about the jboss-dev-forums mailing list