[jboss-user] [JBoss Portal] - Re: Problem when deploying portlet

skeletonkey do-not-reply at jboss.com
Thu Apr 10 22:02:21 EDT 2008


I'm sorry, I forget posting the portlet-instances.xml and portlet.xml.
Here is the portlet.xml<portlet>
  |         <portlet-name>preventions</portlet-name>
  |         <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
  | 		<init-param>
  | 			<name>contextConfigLocation</name>
  | 			<value>/WEB-INF/context/portlet/preventions.xml</value>
  | 		</init-param>
  |         <supports>
  |             <mime-type>text/html</mime-type>
  |             <portlet-mode>view</portlet-mode>
  |         </supports>
  |         <portlet-info>
  |             <title>Preventions</title>
  |         </portlet-info>
  |     </portlet>
and here is the portlet-instances.xml
<deployments>
  |    <deployment>
  |       <instance>
  |          <instance-id>PreventionsInstance</instance-id>
  |          <portlet-ref>preventions</portlet-ref>
  |       </instance>
  |    </deployment>
  | </deployments>
and here is the jboss-portlet.xml:
<portlet-app>
  | 	<portlet>
  | 		<portlet-name>preventions</portlet-name>
  | 		<header-content>
  | 		</header-content>
  | 	</portlet>
  | </portlet-app>
and here is the springportlet-object.xml:
<deployments>
  |    <deployment>
  |       <if-exists>overwrite</if-exists>
  |       <parent-ref>default</parent-ref>
  |       <page>
  |          <page-name>Preventions</page-name>
  |          <window>
  |             <window-name>PreventionsWindow</window-name>
  |             <instance-ref>PreventionsInstance</instance-ref>
  |             <region>left</region>
  |             <height>0</height>
  |          </window>  
  |     </page>
  |    </deployment>
  | </deployments>

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143333#4143333

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143333



More information about the jboss-user mailing list