click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r956373 - in /click/trunk/click: examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java framework/src/org/apache/click/control/Form.java
Date Sun, 20 Jun 2010 16:01:53 GMT
Author: sabob
Date: Sun Jun 20 16:01:53 2010
New Revision: 956373

URL: http://svn.apache.org/viewvc?rev=956373&view=rev
Log:
form.submit function should use form instead of formname

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java
    click/trunk/click/framework/src/org/apache/click/control/Form.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java?rev=956373&r1=956372&r2=956373&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicFieldSet.java
Sun Jun 20 16:01:53 2010
@@ -65,9 +65,9 @@ public class DynamicFieldSet extends Bor
         customerFS.add(addressChk);
 
         // The Click script, '/click/control.js', provides the JavaScript
-        // function Click.submit(formName, validate). To bypass validation
+        // function Click.submit(form, validate). To bypass validation
         // specify 'false' as the second argument.
-        addressChk.setAttribute("onclick", "Click.submit(dynamicForm, false)");
+        addressChk.setAttribute("onclick", "Click.submit(form, false)");
 
         form.add(submit);
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java?rev=956373&r1=956372&r2=956373&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/dynamic/DynamicForm.java
Sun Jun 20 16:01:53 2010
@@ -53,9 +53,9 @@ public class DynamicForm extends BorderP
         form.add(checkbox);
 
         // The Click script, '/click/control.js', provides the JavaScript
-        // function Click.submit(formName, validate). To bypass validation
+        // function Click.submit(form, validate). To bypass validation
         // specify 'false' as the second argument.
-        checkbox.setAttribute("onclick", "Click.submit(dynamicForm, false)");
+        checkbox.setAttribute("onclick", "Click.submit(form, false)");
 
         form.add(submit);
 

Modified: click/trunk/click/framework/src/org/apache/click/control/Form.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Form.java?rev=956373&r1=956372&r2=956373&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Form.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Form.java Sun Jun 20 16:01:53
2010
@@ -486,15 +486,15 @@ import org.apache.commons.lang.StringUti
  * Form also provides a JavaScript function (part of the <tt>"/click/control.js"</tt>
  * resource) that will submit the Form and optionally bypasses validation. The
  * JavaScript function is:
- * <tt>"Click.submit(formName, validate)"</tt> and can be used as follows:
+ * <tt>"Click.submit(form, validate)"</tt> and can be used as follows:
  * <pre class="prettyprint">
  * Form form = new Form("myform");
  *
  * // The second argument to Click.submit is "false", meaning validation is bypassed
- * checkbox.setAttribute("onclick", "Click.submit(myform, false)");
+ * checkbox.setAttribute("onclick", "Click.submit(form, false)");
  *
  * // For a Select field use the "onchange" JavaScript event instead
- * select.setAttribute("onchange", "Click.submit(myform, false)"); </pre>
+ * select.setAttribute("onchange", "Click.submit(form, false)"); </pre>
  *
  * <p>&nbsp;<p/>
  * See also the W3C HTML reference:



Mime
View raw message