[jboss-dev-forums] [Design of JBoss Portal] - Re: JBOSS Portal, JSF, XHTML and AJAX !!!finally!!! :-)
dajevtic
do-not-reply at jboss.com
Thu Sep 7 02:51:36 EDT 2006
Dear Julien,
I have managed to get my code running as you suggested.
I changed the jboss-service.xml as needed, configured the portal servlet to listen under /ajax/*, created an AjaxController and an AjaxPortletRenderer.
Here is one small snippet of the jboss-service.xml that I have a question for:
| ...
| <mbean
| code="org.jboss.portal.server.impl.invocation.JBossInterceptorStackFactory"
| name="portal:service=InterceptorStackFactory,type=Ajax"
| xmbean-dd=""
| xmbean-code="org.jboss.portal.jems.as.system.JBossServiceModelMBean">
| <xmbean/>
| <depends-list optional-attribute-name="InterceptorNames">
| <depends-list-element>portal:service=Interceptor,type=Server,name=Transaction</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Server,name=SessionInvalidator</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Server,name=User</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Server,name=Locale</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Server,name=ContentType</depends-list-element>
| <depends-list-element>portal:service=Interceptor,type=Server,name=AjaxController</depends-list-element>
| </depends-list>
| </mbean>
| ...
|
My question now is: Since I mainly just use another Controller and another Renderer (the rest is the same as in the regular stack), is it possible to define a conditional "depends-list-element" or do I always have to define my own complete action, command and render stack?
I am thinking of something like
| if (ajax) {
| <depends-list-element>portal:service=Interceptor,type=Server,name=AjaxController</depends-list-element>
| </depends-list>
| } else {
| <depends-list-element>portal:service=Interceptor,type=Server,name=Controller</depends-list-element>
| </depends-list>
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969987#3969987
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969987
More information about the jboss-dev-forums
mailing list