click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1026561 - /click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaginatorPage.java
Date Sat, 23 Oct 2010 05:20:25 GMT
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));



Mime
View raw message