cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r306647 - in /cocoon/blocks/forms/trunk/samples: flow/forms_flow_example.js sitemap.xmap
Date Thu, 06 Oct 2005 14:05:42 GMT
Author: joerg
Date: Thu Oct  6 07:05:21 2005
New Revision: 306647

URL: http://svn.apache.org/viewcvs?rev=306647&view=rev
Log:
introducing renderMode param for later addition of xul

Modified:
    cocoon/blocks/forms/trunk/samples/flow/forms_flow_example.js
    cocoon/blocks/forms/trunk/samples/sitemap.xmap

Modified: cocoon/blocks/forms/trunk/samples/flow/forms_flow_example.js
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/samples/flow/forms_flow_example.js?rev=306647&r1=306646&r2=306647&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/samples/flow/forms_flow_example.js (original)
+++ cocoon/blocks/forms/trunk/samples/flow/forms_flow_example.js Thu Oct  6 07:05:21 2005
@@ -31,8 +31,11 @@
     model.contacts[2].firstname = "Chris";
     model.drinks = ["Jupiler", "Coca Cola"];
 
+    var renderMode = cocoon.parameters["renderMode"];
+
     form.locale = locale;
-    form.showForm("form1-display-pipeline.jx");
+    form.showForm("form1-display-pipeline." + renderMode);
+
     print("submitId = " + form.submitId);
     if (form.isValid) {
       print("visa=" + model.visa);  

Modified: cocoon/blocks/forms/trunk/samples/sitemap.xmap
URL: http://svn.apache.org/viewcvs/cocoon/blocks/forms/trunk/samples/sitemap.xmap?rev=306647&r1=306646&r2=306647&view=diff
==============================================================================
--- cocoon/blocks/forms/trunk/samples/sitemap.xmap (original)
+++ cocoon/blocks/forms/trunk/samples/sitemap.xmap Thu Oct  6 07:05:21 2005
@@ -158,6 +158,7 @@
      <map:match pattern="form1.flow">
        <map:call function="handleForm">
          <map:parameter name="function" value="form1"/>
+		 <map:parameter name="renderMode" value="jx"/>
          <map:parameter name="definitionURI" value="forms/form1.xml"/>
        </map:call>
      </map:match>
@@ -227,11 +228,11 @@
        <map:select type="request-parameter">
          <map:parameter name="parameter-name" value="cocoon-ajax"/>
          <map:when test="true">
-	   <map:serialize type="xml"/>
-	 </map:when>
-	 <map:otherwise>
+           <map:serialize type="xml"/>
+         </map:when>
+         <map:otherwise>
            <map:serialize type="html"/>
-	 </map:otherwise>
+         </map:otherwise>
        </map:select>
      </map:match>
 



Mime
View raw message