click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r925584 - in /click/trunk/click: documentation/docs/roadmap-changes.html documentation/docs/upgrade-path.html examples/src/org/apache/click/examples/page/control/DisabledDemo.java examples/webapp/control/disabled-demo.htm
Date Sat, 20 Mar 2010 11:46:37 GMT
Author: sabob
Date: Sat Mar 20 11:46:36 2010
New Revision: 925584

URL: http://svn.apache.org/viewvc?rev=925584&view=rev
Log:
roadmap and cleanup

Modified:
    click/trunk/click/documentation/docs/roadmap-changes.html
    click/trunk/click/documentation/docs/upgrade-path.html
    click/trunk/click/examples/src/org/apache/click/examples/page/control/DisabledDemo.java
    click/trunk/click/examples/webapp/control/disabled-demo.htm

Modified: click/trunk/click/documentation/docs/roadmap-changes.html
URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/roadmap-changes.html?rev=925584&r1=925583&r2=925584&view=diff
==============================================================================
--- click/trunk/click/documentation/docs/roadmap-changes.html (original)
+++ click/trunk/click/documentation/docs/roadmap-changes.html Sat Mar 20 11:46:36 2010
@@ -99,6 +99,10 @@ includes improved Ajax support and @Bind
         <a target="_blank" class="external" href="http://www.avoka.com/click-examples/form/dynamic/dynamic-select.htm">
         Dynamic Select</a> demonstrates how to dynamically add fields based on a Select
field value.
       </li>
+      <li>
+        <a target="_blank" class="external" href="http://www.avoka.com/click-examples/control/disabled-demo.htm">
+        Disabled Demo</a> demonstrates the behavior of disabled fields.
+      </li>
     </ul>
     <div style="margin-left: -2em; margin-top: 1.5em; margin-bottom: 1em;">
       <b>New features and issues resolved:</b>
@@ -137,7 +141,7 @@ includes improved Ajax support and @Bind
             </li>
             <li>
                 Disabled fields are automatically enabled if the field has an
-                incoming request parameter indicating that the field was enabled
+                incoming request parameter, indicating that the field was enabled
                 on the client using JavaScript. Please note that this behavior does
                 not apply to Checkbox or Radio fields. See the
                 <a href="click-api/org/apache/click/control/Field.html#setDisabled(boolean)">setDisabled()</a>

Modified: click/trunk/click/documentation/docs/upgrade-path.html
URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/upgrade-path.html?rev=925584&r1=925583&r2=925584&view=diff
==============================================================================
--- click/trunk/click/documentation/docs/upgrade-path.html (original)
+++ click/trunk/click/documentation/docs/upgrade-path.html Sat Mar 20 11:46:36 2010
@@ -98,7 +98,7 @@ versions please email the Click user gro
               </li>
               <li>
                   Disabled fields are automatically enabled if the field has an
-                  incoming request parameter indicating that the field was enabled
+                  incoming request parameter, indicating that the field was enabled
                   on the client using JavaScript. Please note that this behavior does
                   not apply to Checkbox or Radio fields. See the
                   <a href="click-api/org/apache/click/control/Field.html#setDisabled(boolean)">setDisabled()</a>

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/control/DisabledDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/control/DisabledDemo.java?rev=925584&r1=925583&r2=925584&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/control/DisabledDemo.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/control/DisabledDemo.java
Sat Mar 20 11:46:36 2010
@@ -26,9 +26,8 @@ import org.apache.cayenne.access.DataCon
 import org.apache.click.ActionListener;
 import org.apache.click.Control;
 import org.apache.click.control.Checkbox;
+import org.apache.click.control.FieldSet;
 import org.apache.click.control.Form;
-import org.apache.click.control.Radio;
-import org.apache.click.control.RadioGroup;
 import org.apache.click.control.Submit;
 import org.apache.click.control.TextField;
 import org.apache.click.element.JsImport;
@@ -55,6 +54,8 @@ public class DisabledDemo extends Border
 
     private Form form = new Form("form");
 
+    private FieldSet fieldSet = new FieldSet("customer");
+
     private TextField nameField = new TextField("name", true);
 
     private InvestmentSelect investmentSelect = new InvestmentSelect("investments", true);
@@ -73,16 +74,18 @@ public class DisabledDemo extends Border
 
         final Customer customer = loadCustomer();
 
+        form.add(fieldSet);
+
         // Disable fields
         nameField.setDisabled(true);
-        form.add(nameField);
+        fieldSet.add(nameField);
 
         investmentSelect.setDisabled(true);
-        form.add(investmentSelect);
+        fieldSet.add(investmentSelect);
 
-        form.add(toggle);
+        fieldSet.add(toggle);
 
-        form.add(submit);
+        fieldSet.add(submit);
         submit.setActionListener(new ActionListener() {
 
             public boolean onAction(Control source) {

Modified: click/trunk/click/examples/webapp/control/disabled-demo.htm
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/webapp/control/disabled-demo.htm?rev=925584&r1=925583&r2=925584&view=diff
==============================================================================
--- click/trunk/click/examples/webapp/control/disabled-demo.htm (original)
+++ click/trunk/click/examples/webapp/control/disabled-demo.htm Sat Mar 20 11:46:36 2010
@@ -1,5 +1,8 @@
 <style type="text/css">
-    td.fields {
+    #form_customer {
+        width: 20em;
+    }
+    #form_customer-fields td.fields {
         width: 8em;
     }
 </style>



Mime
View raw message