You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2010/10/23 07:20:25 UTC

svn commit: r1026561 - /click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java

Author: sabob
Date: Sat Oct 23 05:20:25 2010
New Revision: 1026561

URL: http://svn.apache.org/viewvc?rev=1026561&view=rev
Log:
best practice: don't use bindable controls

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java?rev=1026561&r1=1026560&r2=1026561&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java Sat Oct 23 05:20:25 2010
@@ -29,7 +29,6 @@ import org.apache.click.examples.domain.
 import org.apache.click.examples.page.BorderPage;
 import org.apache.click.examples.service.CustomerService;
 import org.apache.click.extras.control.TableInlinePaginator;
-import org.apache.click.util.Bindable;
 import org.springframework.stereotype.Component;
 
 /**
@@ -40,9 +39,9 @@ public class TablePaginatorPage extends 
 
     private static final long serialVersionUID = 1L;
 
-    @Bindable protected Table table1 = new Table();
-    @Bindable protected Table table2 = new Table();
-    @Bindable protected Table table3 = new Table();
+    protected Table table1 = new Table("table1");
+    protected Table table2 = new Table("table2");
+    protected Table table3 = new Table("table3");
 
     @Resource(name="customerService")
     private CustomerService customerService;
@@ -50,6 +49,10 @@ public class TablePaginatorPage extends 
     // Constructor ------------------------------------------------------------
 
     public TablePaginatorPage() {
+        addControl(table1);
+        addControl(table2);
+        addControl(table3);
+
         // Table 1
         addColumns(table1);
         table1.setPaginator(new TablePaginator(table1));