-
1. Re: Defining which portlet handles requests by default
julien1 Feb 5, 2006 6:42 AM (in response to adamw)you want to look at the parameterization of the CMSObjectCommandMapper that has an attribute that specifies what is the default portal object window ref used to show the content.
-
2. Re: Defining which portlet handles requests by default
adamw Feb 6, 2006 2:46 PM (in response to adamw)Hello,
so, when I write my ObjectCommandMapper, how do I "plug it" into portal? I looked through the XMLs but found nothing.
Or maybe I do the idea of CommandMappers wrong ... what I am trying to achieve, is that when a portal gets an URL (lets say, for the "first time", that is, it is not an action / render request), it is passed to my "translator", that sets some parameters for portlets (parsed from that URL) and returnes the name of the page that should be opened. Is it or something similar possible?
--
Cheers,
Adam -
3. Re: Defining which portlet handles requests by default
julien1 Feb 6, 2006 7:08 PM (in response to adamw)Hello Adam,
look at META-INF/jboss-service.xml of portal, this is where all the mappers (as services) are wired together. They form a chain of responsability. You can almost do whatever you want. -
4. Re: Defining which portlet handles requests by default
adamw Feb 7, 2006 11:52 AM (in response to adamw)This works perfectly, thanks!
-
5. Re: Defining which portlet handles requests by default
antoine_h May 14, 2006 12:10 PM (in response to adamw)I need to manage the cms style url.
Is it possible to write another CMSObjectCommandMapper like MyCMSObjectCommandMapper service and inject the service in JBoss and replace the CMSObjectCommandMapper with it ?
is there somewhere some explaination on the chain of responsability (without reading all the classes code) ?
or advice to make the MyCMSObjectCommandMapper ?
any help would be great...
Thanks -
6. Re: Defining which portlet handles requests by default
roy.russo May 15, 2006 9:36 AM (in response to adamw)There is a good amount documented here: http://wiki.jboss.org/wiki/Wiki.jsp?page=PortalCMSOverview