Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 38582 invoked from network); 24 Dec 2010 11:16:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Dec 2010 11:16:22 -0000 Received: (qmail 67898 invoked by uid 500); 24 Dec 2010 11:16:22 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 67885 invoked by uid 500); 24 Dec 2010 11:16:22 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 67876 invoked by uid 99); 24 Dec 2010 11:16:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Dec 2010 11:16:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Dec 2010 11:16:18 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 52C992388A33; Fri, 24 Dec 2010 11:15:57 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1052484 - in /click/trunk/click/examples/src/org/apache/click/examples/page/table: TableFooter.java TablePaging.java Date: Fri, 24 Dec 2010 11:15:57 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101224111557.52C992388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);