click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r956364 - in /click/trunk/click/examples/src/org/apache/click/examples/page: control/ImageDemo.java control/RegexDemo.java form/ExtraControlsForm.java form/MultipleFormsDemo.java
Date Sun, 20 Jun 2010 14:23:59 GMT
Author: sabob
Date: Sun Jun 20 14:23:59 2010
New Revision: 956364

URL: http://svn.apache.org/viewvc?rev=956364&view=rev
Log:
don't use 'submit' as the name of fields since it creates errors when using JS, especially
when submitting forms

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
    click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java?rev=956364&r1=956363&r2=956364&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/control/ImageDemo.java Sun
Jun 20 14:23:59 2010
@@ -53,7 +53,7 @@ public class ImageDemo extends BorderPag
         // Colors Form
         form.add(new Label("label", "<b>Color Chooser</b>"));
 
-        colorSubmit = new ImageSubmit("submit", "/assets/images/colors.gif");
+        colorSubmit = new ImageSubmit("save", "/assets/images/colors.gif");
         colorSubmit.setListener(this, "onColorClick");
         form.add(colorSubmit);
     }

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java?rev=956364&r1=956363&r2=956364&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/control/RegexDemo.java Sun
Jun 20 14:23:59 2010
@@ -48,7 +48,7 @@ public class RegexDemo extends BorderPag
         urlField.setTitle("URL address, e.g. 'http://www.google.com'");
         form.add(urlField);
 
-        form.add(new Submit("submit", "  OK  "));
+        form.add(new Submit("ok", "  OK  "));
         form.add(new PageSubmit("cancel", HomePage.class));
     }
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java?rev=956364&r1=956363&r2=956364&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
Sun Jun 20 14:23:59 2010
@@ -97,7 +97,7 @@ public class ExtraControlsForm extends B
         form.add(new VirtualKeyboard("keyboardField"));
         form.add(new CountrySelect("countrySelect"));
 
-        form.add(new Submit("submit"));
+        form.add(new Submit("save"));
         form.add(new PageSubmit("cancel", HomePage.class));
 
         // Settings Form

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java?rev=956364&r1=956363&r2=956364&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/form/MultipleFormsDemo.java
Sun Jun 20 14:23:59 2010
@@ -72,11 +72,11 @@ public class MultipleFormsDemo extends B
 
         // construct form1
         form1.add(new TextField("name"));
-        form1.add(new Submit("submit", this, "onForm1Submit"));
+        form1.add(new Submit("save", this, "onForm1Submit"));
 
         // construct form2
         form2.add(new TextField("name"));
-        form2.add(new Submit("submit", this, "onForm2Submit"));
+        form2.add(new Submit("save", this, "onForm2Submit"));
 
         // add form1 and form2 to the page controls.
         addControl(form1);



Mime
View raw message