click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1052771 - in /click/trunk/click/examples/src/org/apache/click/examples/page/cayenne: EnrollmentDemo.java FormTablePage.java
Date Sat, 25 Dec 2010 11:49:05 GMT
Author: sabob
Date: Sat Dec 25 11:49:05 2010
New Revision: 1052771

URL: http://svn.apache.org/viewvc?rev=1052771&view=rev
Log:
Remove auto binding from examples CLK-742

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java
    click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java?rev=1052771&r1=1052770&r2=1052771&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/EnrollmentDemo.java
Sat Dec 25 11:49:05 2010
@@ -54,6 +54,7 @@ public class EnrollmentDemo extends Form
     /**
      * @see FormTablePage#onInit()
      */
+    @Override
     public void onInit() {
         form.add(new TextField("name")).setRequired(true);
 
@@ -71,6 +72,7 @@ public class EnrollmentDemo extends Form
     /**
      * @see FormTablePage#onSaveClick()
      */
+    @Override
     public boolean onSaveClick() {
         if (form.isValid()) {
             Student student = (Student) form.getDataObject();
@@ -88,6 +90,7 @@ public class EnrollmentDemo extends Form
     /**
      * @see FormTablePage#onEditClick()
      */
+    @Override
     public boolean onEditClick() {
         Student student = getSelectedStudent();
 

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java?rev=1052771&r1=1052770&r2=1052771&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/cayenne/FormTablePage.java
Sat Dec 25 11:49:05 2010
@@ -30,7 +30,6 @@ import org.apache.click.control.Table;
 import org.apache.click.examples.page.BorderPage;
 import org.apache.click.extras.cayenne.CayenneForm;
 import org.apache.click.extras.control.LinkDecorator;
-import org.apache.click.util.Bindable;
 
 /**
  * Provides an abstract CayenneForm and Table Page for creating and editing
@@ -47,10 +46,10 @@ public abstract class FormTablePage exte
 
     private static final long serialVersionUID = 1L;
 
-    @Bindable protected CayenneForm form;
-    @Bindable protected Table table = new Table();
-    @Bindable protected ActionLink editLink = new ActionLink("edit", this, "onEditClick");
-    @Bindable protected ActionLink removeLink = new ActionLink("remove", this, "onRemoveClick");
+    protected CayenneForm form;
+    protected Table table = new Table("table");
+    protected ActionLink editLink = new ActionLink("edit", this, "onEditClick");
+    protected ActionLink removeLink = new ActionLink("remove", this, "onRemoveClick");
 
     // Constructor ------------------------------------------------------------
 
@@ -60,6 +59,12 @@ public abstract class FormTablePage exte
      */
     public FormTablePage() {
         form = createForm();
+        form.setName("form");
+        addControl(form);
+        addControl(table);
+        addControl(editLink);
+        addControl(removeLink);
+
         form.setDataObjectClass(getDataObjectClass());
         form.setErrorsPosition(Form.POSITION_TOP);
 
@@ -80,6 +85,7 @@ public abstract class FormTablePage exte
      *
      * @see org.apache.click.Page#onSecurityCheck()
      */
+    @Override
     public boolean onSecurityCheck() {
         String pagePath = getContext().getPagePath(getClass());
 
@@ -96,6 +102,7 @@ public abstract class FormTablePage exte
      *
      * @see org.apache.click.Page#onInit()
      */
+    @Override
     public void onInit() {
         super.onInit();
 



Mime
View raw message