click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r899872 - in /incubator/click/trunk/click: examples/src/org/apache/click/examples/page/control/ examples/src/org/apache/click/examples/page/form/ extras/src/org/apache/click/extras/cayenne/ framework/src/org/apache/click/control/
Date Sat, 16 Jan 2010 01:57:51 GMT
Author: sabob
Date: Sat Jan 16 01:57:50 2010
New Revision: 899872

URL: http://svn.apache.org/viewvc?rev=899872&view=rev
Log:
use ContainerUtils.getInputFields instead

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java
    incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/CayenneForm.java
    incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/control/FieldSetDemo.java
Sat Jan 16 01:57:50 2010
@@ -38,7 +38,7 @@
 import org.apache.click.extras.control.IntegerField;
 import org.apache.click.extras.control.PageSubmit;
 import org.apache.click.util.Bindable;
-import org.apache.click.util.ClickUtils;
+import org.apache.click.util.ContainerUtils;
 
 /**
  * Provides a form FieldSet example.
@@ -110,7 +110,7 @@
 
     public boolean onOkClick() {
         if (isFormValid()) {
-            List fieldList = ClickUtils.getFormFields(form);
+            List fieldList = ContainerUtils.getInputFields(form);
             for (Iterator i = fieldList.iterator(); i.hasNext(); ) {
                 Field field = (Field) i.next();
                 System.out.println(field.getName() + "=" + field.getValue());

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/ExtraControlsForm.java
Sat Jan 16 01:57:50 2010
@@ -48,7 +48,7 @@
 import org.apache.click.extras.control.TelephoneField;
 import org.apache.click.extras.control.VirtualKeyboard;
 import org.apache.click.util.Bindable;
-import org.apache.click.util.ClickUtils;
+import org.apache.click.util.ContainerUtils;
 import org.springframework.stereotype.Component;
 
 /**
@@ -139,7 +139,7 @@
         Options options = (Options) ExampleUtils.getSessionObject(Options.class);
 
         form.setJavaScriptValidation(options.javaScriptValidate);
-        List formFiels = ClickUtils.getFormFields(form);
+        List formFiels = ContainerUtils.getInputFields(form);
         for (Iterator i = formFiels.iterator(); i.hasNext();) {
             Field field = (Field) i.next();
             field.setRequired(options.allFieldsRequired);

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/StandardControlsForm.java
Sat Jan 16 01:57:50 2010
@@ -47,7 +47,7 @@
 import org.apache.click.examples.service.CustomerService;
 import org.apache.click.examples.util.ExampleUtils;
 import org.apache.click.util.Bindable;
-import org.apache.click.util.ClickUtils;
+import org.apache.click.util.ContainerUtils;
 import org.springframework.stereotype.Component;
 
 /**
@@ -149,7 +149,7 @@
         Options options = (Options) ExampleUtils.getSessionObject(Options.class);
 
         form.setJavaScriptValidation(options.javaScriptValidate);
-        List formFiels = ClickUtils.getFormFields(form);
+        List formFiels = ContainerUtils.getInputFields(form);
         for (Iterator i = formFiels.iterator(); i.hasNext();) {
             Field field = (Field) i.next();
             field.setRequired(options.allFieldsRequired);

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java
(original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/form/TabbedFormDemo.java
Sat Jan 16 01:57:50 2010
@@ -41,7 +41,7 @@
 import org.apache.click.extras.control.PageSubmit;
 import org.apache.click.extras.control.TabbedForm;
 import org.apache.click.extras.control.TelephoneField;
-import org.apache.click.util.ClickUtils;
+import org.apache.click.util.ContainerUtils;
 
 /**
  * Provides an TabbedForm control example.
@@ -155,7 +155,7 @@
     }
 
     private void processDelivery() {
-        List fieldList = ClickUtils.getFormFields(form);
+        List fieldList = ContainerUtils.getInputFields(form);
         for (Iterator i = fieldList.iterator(); i.hasNext(); ) {
             Field field = (Field) i.next();
             System.out.println(field.getName() + "=" + field.getValue());

Modified: incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/CayenneForm.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/CayenneForm.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/CayenneForm.java
(original)
+++ incubator/click/trunk/click/extras/src/org/apache/click/extras/cayenne/CayenneForm.java
Sat Jan 16 01:57:50 2010
@@ -384,7 +384,7 @@
             // Clear any form data
             oidField.setValueObject(null);
 
-            List fields = ClickUtils.getFormFields(this);
+            List fields = ContainerUtils.getInputFields(this);
             for (int i = 0; i < fields.size(); i++) {
                 Field field = (Field) fields.get(i);
                 if (field instanceof HiddenField == false) {

Modified: incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java?rev=899872&r1=899871&r2=899872&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/control/Form.java Sat Jan 16
01:57:50 2010
@@ -1990,7 +1990,7 @@
      * @return the rendered form start tag and the forms hidden fields
      */
     public String startTag() {
-        List formFields = ClickUtils.getFormFields(this);
+        List formFields = ContainerUtils.getInputFields(this);
 
         int bufferSize = getFormSizeEst(formFields);
 
@@ -2010,7 +2010,7 @@
     public String endTag() {
         HtmlStringBuffer buffer = new HtmlStringBuffer();
 
-        List formFields = ClickUtils.getFormFields(this);
+        List formFields = ContainerUtils.getInputFields(this);
 
         renderTagEnd(formFields, buffer);
 
@@ -2031,7 +2031,7 @@
         final boolean process =
             getContext().getRequest().getMethod().equalsIgnoreCase(getMethod());
 
-        List formFields = ClickUtils.getFormFields(this);
+        List formFields = ContainerUtils.getInputFields(this);
 
         renderHeader(buffer, formFields);
 



Mime
View raw message