[JBoss Portal] - Defining new CMS portlet instance
by halversp
I'm trying to define a new CMS portlet instance for some custom page content but I can't seem to make a valid reference in my portlet-instances.xml to a portlet in a different webapp (e.g. core). No matter what I provide as a portlet-ref, JBP keeps trying to append my webapp's context name ("arcdrm") to the front of the portlet name, and obviously failing. I've tried "CMSPortlet", "portal.CMSPortlet", and "local.portal.CMSPortlet", all fail with something like
anonymous wrote : Failed to create instance WelcomePortletInstance of portlet arcdrm.local.portal.CMSPortlet because portlet arcdrm.local.portal.CMSPortlet is not available
How are the values of <portlet-ref> parsed? Is is simply impossible to refer to portlets outside the immediate portlets.xml context, or is there some naming convention I haven't stumbled upon? It's clearly supported in the portal proper, as I can set this instance up administratively, but I need to be able to do it declaratively through the xml deployment.
appreciate insight,
p
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970465#3970465
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970465
19 years, 7 months
[JBoss Portal] - Re: response.createRenderUrl() always returns
by Antoine_h
to manage your own mapping between url and page/window, and manage the parameter your way, you should write your own url mapping service.
You can look at the CMSPortlet object that works with it's own mapping for url like ...portal/content/myFile.html and rely on the CMS repository to get the file.
see the doc, about the CMS and the prefix of the url for files in the cms repository. there is an explaination about this... and that is a good start.
then look at services like :
portal:urlFactory=CMSObject
and
"portal:commandFactory*"
or portal:commandFactory=CMSObject
(these are defined in a jboss-service.xml file, in meta-inf folder)
and classes such as CMSObjectURLFactory and CMSObjectCommandFactory
portal 2.4 has been enhanced for managing this : for what I have just seen, you should be able to manage several prefixes, with several window target.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970459#3970459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970459
19 years, 7 months