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/12/24 12:15:57 UTC
svn commit: r1052484 - in
/click/trunk/click/examples/src/org/apache/click/examples/page/table:
TableFooter.java TablePaging.java
Author: sabob
Date: Fri Dec 24 11:15:56 2010
New Revision: 1052484
URL: http://svn.apache.org/viewvc?rev=1052484&view=rev
Log:
Remove auto binding from examples CLK-742
Modified:
click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java
click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java
Modified: click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java?rev=1052484&r1=1052483&r2=1052484&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/table/TableFooter.java Fri Dec 24 11:15:56 2010
@@ -28,7 +28,6 @@ import org.apache.click.control.Table;
import org.apache.click.examples.domain.Customer;
import org.apache.click.examples.page.BorderPage;
import org.apache.click.examples.service.CustomerService;
-import org.apache.click.util.Bindable;
import org.apache.click.dataprovider.DataProvider;
import org.apache.click.util.HtmlStringBuffer;
import org.springframework.stereotype.Component;
@@ -41,7 +40,7 @@ public class TableFooter extends BorderP
private static final long serialVersionUID = 1L;
- @Bindable protected Table table;
+ private Table table;
@Resource(name="customerService")
private CustomerService customerService;
@@ -49,7 +48,7 @@ public class TableFooter extends BorderP
// Constructor ------------------------------------------------------------
public TableFooter() {
- table = new Table() {
+ table = new Table("table") {
private static final long serialVersionUID = 1L;
@Override
@@ -58,6 +57,8 @@ public class TableFooter extends BorderP
}
};
+ addControl(table);
+
// Setup customers table
table.setClass(Table.CLASS_ITS);
Modified: click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java?rev=1052484&r1=1052483&r2=1052484&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java (original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/table/TablePaging.java Fri Dec 24 11:15:56 2010
@@ -27,7 +27,6 @@ import org.apache.click.control.Table;
import org.apache.click.examples.domain.Customer;
import org.apache.click.examples.page.BorderPage;
import org.apache.click.examples.service.CustomerService;
-import org.apache.click.util.Bindable;
import org.apache.click.dataprovider.DataProvider;
import org.springframework.stereotype.Component;
@@ -39,13 +38,14 @@ public class TablePaging extends BorderP
private static final long serialVersionUID = 1L;
- @Bindable protected Table table = new Table();
+ private Table table = new Table("table");
@Resource(name="customerService")
private CustomerService customerService;
public TablePaging() {
// Setup customers table
+ addControl(table);
table.setClass(Table.CLASS_ISI);
table.setPageSize(4);
table.setShowBanner(true);