cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/samples sitemap.xmap welcome.xml
Date Tue, 22 Jul 2003 11:51:18 GMT
bruno       2003/07/22 04:51:18

  Modified:    src/blocks/woody/samples sitemap.xmap welcome.xml
  Log:
  Binding framework patch by Marc Portier (see bugzilla 21671)
  
  Revision  Changes    Path
  1.8       +61 -14    cocoon-2.1/src/blocks/woody/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/sitemap.xmap,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- sitemap.xmap	22 Jul 2003 08:41:25 -0000	1.7
  +++ sitemap.xmap	22 Jul 2003 11:51:17 -0000	1.8
  @@ -26,6 +26,8 @@
       <map:action name="woody-make-form" src="org.apache.cocoon.woody.acting.MakeFormAction"/>
       <map:action name="init-form1" src="org.apache.cocoon.woody.samples.InitForm1Action"/>
       <map:action name="woody-handle-form-submit" src="org.apache.cocoon.woody.acting.HandleFormSubmitAction"/>
  +    <map:action name="woody-bind-form" src="org.apache.cocoon.woody.acting.BindingFormAction"
  +    	          logger="woody"/>
     </map:actions>
   
     <map:pipes default="caching">
  @@ -51,6 +53,7 @@
     <!-- indicates what flowscript to attach to this sitemap -->
     <map:flow language="javascript">
       <map:script src="flow/woody_flow_example.js"/>
  +    <map:script src="flow/binding_example.js"/>
     </map:flow>
   
    <map:pipelines>
  @@ -129,15 +132,15 @@
       <!-- Flowscript Sample -->
   
        <map:match pattern="form1.flow">
  -           <map:call function="woody">
  -             <map:parameter name="function" value="form1"/>
  -             <map:parameter name="form-definition" value="forms/form1.xml"/>
  -             <map:parameter name="attribute-name" value="form1"/>
  -           </map:call>
  +       <map:call function="woody">
  +         <map:parameter name="function" value="form1"/>
  +         <map:parameter name="form-definition" value="forms/form1.xml"/>
  +         <map:parameter name="attribute-name" value="form1"/>
  +       </map:call>
        </map:match>
   
        <map:match pattern="*.continue">
  -           <map:call continuation="{1}"/>
  +       <map:call continuation="{1}"/>
        </map:match>
   
        <map:match pattern="form1-display-pipeline">
  @@ -165,14 +168,58 @@
        </map:match>
   
        <map:match pattern="form1-success-pipeline">
  -             <map:generate type="serverpages" src="forms/form1_success.xsp"/>
  -             <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
  -               <map:parameter name="contextPath" value="{request:contextPath}"/>
  -               <map:parameter name="servletPath" value="{request:servletPath}"/>
  -               <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
  -               <map:parameter name="file" value="forms/form1_success.xsp"/>
  -             </map:transform>
  -             <map:serialize/>
  +       <map:generate type="serverpages" src="forms/form1_success.xsp"/>
  +       <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
  +         <map:parameter name="contextPath" value="{request:contextPath}"/>
  +         <map:parameter name="servletPath" value="{request:servletPath}"/>
  +         <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
  +         <map:parameter name="file" value="forms/form1_success.xsp"/>
  +       </map:transform>
  +       <map:serialize/>
  +     </map:match>
  +
  +
  +     <!--
  +        | Binding form sample, using flowscript
  +        -->
  +
  +     <map:match pattern="form2.flow">
  +       <map:call function="woody">
  +         <map:parameter name="function" value="form2"/>
  +         <map:parameter name="form-definition" value="forms/form2_model.xml"/>
  +         <map:parameter name="attribute-name" value="form2"/>
  +         <map:parameter name="documentURI" value="forms/form2_data.xml"/>
  +         <map:parameter name="bindingURI" value="forms/form2_bind.xml"/>
  +       </map:call>
  +     </map:match>
  +
  +     <map:match pattern="form2-display-pipeline">
  +       <!-- pipeline to show the form -->
  +       <map:generate type="serverpages" src="forms/form2_template.xsp"/>
  +       <map:transform type="woody">
  +         <map:parameter name="attribute-name" value="form2"/>
  +       </map:transform>
  +
  +       <map:transform type="i18n">
  +         <map:parameter name="locale" value="en-US"/>
  +       </map:transform>
  +       <map:transform src="xsl/html/woody-default.xsl"/>
  +       <map:transform type="i18n">
  +         <map:parameter name="locale" value="en-US"/>
  +       </map:transform>
  +       <map:transform src="context://samples/common/style/xsl/html/simple-page2html.xsl">
  +         <map:parameter name="contextPath" value="{request:contextPath}"/>
  +         <map:parameter name="servletPath" value="{request:servletPath}"/>
  +         <map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
  +         <map:parameter name="file" value="forms/form1_template.xml"/>
  +         <map:parameter name="remove" value="{0}"/>
  +       </map:transform> 
  +       <map:serialize/>
  +     </map:match>
  +
  +     <map:match pattern="form2-success-pipeline">
  +       <map:generate src="forms/form2_data-result.xml"/>
  +       <map:serialize type="xml"/>
        </map:match>
   
        <!--
  
  
  
  1.3       +1 -0      cocoon-2.1/src/blocks/woody/samples/welcome.xml
  
  Index: welcome.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/samples/welcome.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- welcome.xml	5 Jul 2003 22:53:33 -0000	1.2
  +++ welcome.xml	22 Jul 2003 11:51:17 -0000	1.3
  @@ -17,6 +17,7 @@
     <sample name="Flowscript" href="form1.flow">The same sample as above using Flowscript.</sample>
   
     <sample name="Registration" href="registration">A simple registration form.</sample>
  +  <sample name="Binding" href="form2.flow">A form for just editing an XML file. (should
work with simple java-beans as well)</sample>
    </group>
   
   </samples>
  
  
  

Mime
View raw message