This content has been marked as final.
Show 3 replies
-
1. Re: Displaying Portlet of one application in another applica
mholzner Dec 16, 2005 9:40 AM (in response to arvind_pv)pages can feature portlets from any portlet app (WAR) deployed to the portal.
when you add a portlet window to a page, make sure that the instance it points to references the portlet in the desired context, like:<deployment> <if-exists>keep</if-exists> <instance> <instance-name>MyPortletInstance</instance-name> <component-ref>WarContextHere.MyPortlet</component-ref> .......
Note: I'm not quite sure what the explanation is, but in some deployment scenarios you'll have to prepend the context name with a '/', in others you don't. I deployed a portlet app contained in an EAR for example. The jbos-app.xml maps the app to a context name, but I have to refere to the context with a preceding '/' in the -object.xml, defining an instance of a portlet from this app. -
2. Re: Displaying Portlet of one application in another applica
roy.russo Dec 16, 2005 1:51 PM (in response to arvind_pv)Sounds like a reference to WSRP, which will be available in 2.4 - 2Q 06.
-
3. Re: Displaying Portlet of one application in another applica
arvind_pv Dec 17, 2005 3:15 AM (in response to arvind_pv)Hi mholzer,
I thank you very much for posting solution for my query. Your suggestion really worked for me. Below is the XML fragment which I have used in my application. I haven't placed any "/" before the context name in <component-ref> tag.<deployment> <if-exists>keep</if-exists> <instance> <instance-name>MyPortletInstance</instance-name> <component-ref>WarContextHere.MyPortlet</component-ref> <deployment>
Once again Thanks