Hello,
I'm trying to reuse ContentPortlet. It's working in portal-core, but not in my own .war.
I have defined the following:
In portlet.xml:
<portlet-name>OwnContentPortlet</portlet-name>
<portlet-class>org.jboss.portal.core.portlet.cms.ContentPortlet</portlet-class>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-info>
Content
</portlet-info>
<portlet-preferences>
uri
/default/testpage.html
</portlet-preferences>
In hello-pages.xml:
<portal-name>default</portal-name>
<page-name>hello</page-name>
<window-name>HelloPortletWindow</window-name>
<instance-ref>hello.HelloPortlet.HelloPortletInstance</instance-ref>
left
0
<window-name>ContentPortletWindow</window-name>
<instance-ref>hello.OwnContentPortlet.OwnContentPortletInstance</instance-ref>
center
0
What I receive is:
404 - Page Not Found
Oops! We can't really find the resource you're looking for.
How should it be reused? And how the portal-core should be extended? Do I need class-files or .jar-files in my own .wars?
/zz
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3883028#3883028
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3883028
|