This content has been marked as final.
Show 5 replies
-
1. Re: modifying the jboss portal programatically with portal c
julien1 Dec 25, 2006 5:27 PM (in response to fredf)If you are using a web application you should look at the file WEB-INF/jboss-portlet.xml of portal-core.war which provides the capability to inject services in the servlet context of the web application
-
2. Re: modifying the jboss portal programatically with portal c
fredf Dec 28, 2006 9:26 AM (in response to fredf)"julien@jboss.com" wrote:
If you are using a web application you should look at the file WEB-INF/jboss-portlet.xml of portal-core.war which provides the capability to inject services in the servlet context of the web application
Ok, so I use the tag in WEB-INF/jboss-portlet.xml. But then I can only reach these defined services through the portletcontext in a portlet class. I am using Seam which has its own generic portlet (I hope to be able to use that as far as possible). Is there no way for me to inject the entire PortalObjectManagerBean in my seam context or do I have to mime its behavoiur in my own service class?
Maybe this is a question for the seam forum? (although its got to do with portal core)
Fredrik -
3. Re: modifying the jboss portal programatically with portal c
julien1 Dec 29, 2006 6:06 AM (in response to fredf)actually they are injected in the servlet context of the web application.
the portlet context is a mere wrapper of the servlet context. -
4. Re: modifying the jboss portal programatically with portal c
fredf Dec 29, 2006 6:20 AM (in response to fredf)"julien@jboss.com" wrote:
actually they are injected in the servlet context of the web application.
the portlet context is a mere wrapper of the servlet context.
Ok, thanks. I have solved the task in another way (the solution with the mbeanserver inside a transaction). I reed this post:
http://jboss.org/index.html?module=bb&op=viewtopic&t=87301&view=next
I have now created a page. I want to put a portlet inside it. I have found the method of page createWindow(String name) but how do I specify the portlet instance to be shown in the window? There is no create instance of Window class.
Fredrik -
5. Re: modifying the jboss portal programatically with portal c
julien1 Dec 29, 2006 9:17 AM (in response to fredf)On the Window interface there is a setInstanceRef(String s) which takes the instance ref of the portlet instance.