[jboss-user] [JBoss Portal] - Re: Portlet Edit mode

jberdat@hotmail.com do-not-reply at jboss.com
Wed Aug 12 09:58:07 EDT 2009


Ok,

just to reply if it help others.

in portlet.xml


  | 	<portlet>
  | 		<description>portfolioEdit</description>
  | 		<portlet-name>portfolioEdit</portlet-name>
  | 		<display-name>portfolioEdit</display-name>
  | 		<portlet-class>home.prototype.portal.portfolio.portlet.PortfolioEditPortlet</portlet-class>
  | 		<init-param>
  | 			<name>javax.portlet.faces.defaultViewId.view</name>
  | 			<value>/portfolioEdit.xhtml</value>
  | 		</init-param>
  | 		<init-param>
  | 			<name>javax.portlet.faces.defaultViewId.edit</name>
  | 			<value>/portfolioEdit.PortletEditMode.xhtml</value>
  | 		</init-param>
  | 		<init-param>
  | 			<name>javax.portlet.faces.defaultViewId.help</name>
  | 			<value>/portfolioEdit.PortletHelpMode.xhtml</value>
  | 		</init-param>
  | 		<init-param>
  | 			<name>javax.portlet.faces.preserveActionParams</name>
  | 			<value>true</value>
  | 		</init-param>
  | 		<init-param>
  | 			<name>javax.portlet.faces.autoDispatchEvents</name>
  | 			<value>true</value>
  | 		</init-param>
  | 		<init-param>
  | 			<name>javax.portlet.faces.bridgeEventHandler</name>
  | 			<value>home.prototype.portal.common.event.SelectionChangedPortfolioEventHandler</value>
  | 		</init-param>
  | 		<supports>
  | 			<mime-type>text/html</mime-type>
  | 			<portlet-mode>VIEW</portlet-mode>
  | 			<portlet-mode>EDIT</portlet-mode>
  | 			<portlet-mode>HELP</portlet-mode>
  | 			<portlet-mode>admin</portlet-mode>
  | 		</supports>
  | 		<supported-locale>en</supported-locale>
  | 		<supported-locale>it</supported-locale>
  | 		<supported-locale>de</supported-locale>
  | 		<portlet-info>
  | 			<title>Portfolio Edition</title>
  | 			<keywords>management,admin</keywords>
  | 		</portlet-info>
  | 		<supported-processing-event>
  | 			<qname xmlns:home="urn:home:prototype:portal:common:event">home:SelectionChangedPortfolioEvent</qname>
  | 		</supported-processing-event>
  | 	</portlet>
  | 
  | 

and in portlet-instances.xml


  | 	<deployment>
  | 		<if-exists>overwrite</if-exists>
  | 		<instance>
  | 			<instance-id>portfolioEdit</instance-id>
  | 			<portlet-ref>portfolioEdit</portlet-ref>
  | 			<security-constraint>
  | 				<policy-permission>
  | 					<action-name>EDIT</action-name>
  | 					<role-name>Admin</role-name>
  | 				</policy-permission>
  | 				<policy-permission>
  | 					<action-name>view</action-name>
  | 					<unchecked/>
  | 				</policy-permission>
  | 			</security-constraint>
  | 		</instance>
  | 	</deployment>
  | anonymous wrote : 
  |   | 
  |   | After that, there is no need to do anything in the implementation class PortfolioEditPortlet

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

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



More information about the jboss-user mailing list