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.
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?
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.
This works perfectly, thanks!
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...