portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portals-bridges/library/spring spring-portlet-configuration.xml default-portlet-validation.xml
Date Thu, 04 Nov 2004 22:17:48 GMT
taylor      2004/11/04 14:17:48

  Modified:    portals-bridges/library/velocity/macros frameworks-macros.vm
  Added:       portals-bridges/library/spring
                        spring-portlet-configuration.xml
  Removed:     portals-bridges/library/spring
                        default-portlet-validation.xml
  Log:
  updating the examples
  
  Revision  Changes    Path
  1.3       +0 -6      jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm
  
  Index: frameworks-macros.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portals-bridges/library/velocity/macros/frameworks-macros.vm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- frameworks-macros.vm	4 Nov 2004 19:49:44 -0000	1.2
  +++ frameworks-macros.vm	4 Nov 2004 22:17:48 -0000	1.3
  @@ -30,9 +30,3 @@
   #end
   $extraction
   #end
  -
  -#macro (ViewLink $view)
  -#set($vl_result = $renderResponse.createRenderURL())
  -$vl_result.setParameter("velocity.view", $view)
  -$vl_result
  -#end
  
  
  
  1.1                  jakarta-jetspeed-2/portals-bridges/library/spring/spring-portlet-configuration.xml
  
  Index: spring-portlet-configuration.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE beans PUBLIC  "-//SPRING//DTD BEAN//EN"
   "http://www.springframework.org/dtd/spring-beans.dtd">
  
  <beans>
      <description>Spring Portlet Components</description>
      
  <!-- Model -->    
      <bean id="clientInfo" singleton='false' class="com.manning.enterpriseportals.portlets.chapter8.finance.ClientInfoBean">
          <description>Client Info bean used in help mode.</description>
      </bean>    
      
  <!-- Views -->
      <bean id="portlet-views" class="java.util.HashMap">
         <description>Logical View name to actual view</description>
    	   <constructor-arg>
    	   	<map>
    	   	  <entry key="stocks-view">
    	   	  	<value>/WEB-INF/view/chapter8/stocks-view.vm</value>
    	   	  </entry>
    	   	  <entry key="stocks-view2">
    	   	  	<value>/WEB-INF/view/chapter8/stocks-view2.jsp</value>
    	   	  </entry>
    	   	  <entry key="stocks-edit">
    	   	  	<value>/WEB-INF/view/chapter8/stocks-edit.vm</value>
    	   	  </entry>
    	   	  <entry key="stocks-help">
    	   	  	<value>/WEB-INF/view/chapter8/stocks-help.vm</value>
    	   	  </entry>  	   	  
    	   	</map>
    	   </constructor-arg>    	
      </bean>
  
  
  <!-- MVC Map: Views to Beans -->    
      <bean id="portlet-view-bean-map" singleton="true" class="java.util.HashMap">
         <description>Maps views to model beans</description>
    	   <constructor-arg>
    	   	<map>
    	   	  <entry key="stocks-help">
    	   	  	<value>clientInfo</value>
    	   	  </entry>
    	   	</map>
    	   </constructor-arg>    	
      </bean>
  
  <!-- MVC Map: Views to Validator -->    
      <bean id="portlet-view-validator-map" singleton="true" class="java.util.HashMap">
         <description>Maps views to validators</description>
    	   <constructor-arg>
    	   	<map>
    	   	  <entry key="stocks-help">
    	   	  	<value>clientInfo</value>
    	   	  </entry>
    	   	  <entry key="stocks-edit">
    	   	  	<value>symbols</value>
    	   	  </entry>  	   	  
    	   	</map>
    	   </constructor-arg>    	
      </bean>
  
      
  <!-- MVC Map: Action Forward Map - 2 standard actions: success, failure
  			  Naming Convention: (viewname):action i.e. myview:success, myview:failure			  
  			  entry key == view name : action (success or failure)
  			  value == view name, mode:[view,edit,help], state:[minimized,maximized,norma], any combination
of 3
  -->    
      <bean id="portlet-action-forward-map" singleton="true" class="java.util.HashMap">
         <description>Maps logical forward names to views</description>
    	   <constructor-arg>
    	   	<map>
    	   	  <entry key="stocks-edit:success">
    	   	  	<value>mode:view</value>
    	   	  </entry>
    	   	  <entry key="stocks-help:success">
    	   	  	<value>mode:view,state:maximized</value>
    	   	  </entry>  	   	  
    	   	</map>  	   	
    	   </constructor-arg>    	
      </bean>    
  </beans>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message