Return-Path: Delivered-To: apmail-incubator-click-commits-archive@minotaur.apache.org Received: (qmail 67468 invoked from network); 17 Jul 2009 14:31:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 14:31:35 -0000 Received: (qmail 12738 invoked by uid 500); 17 Jul 2009 14:32:41 -0000 Delivered-To: apmail-incubator-click-commits-archive@incubator.apache.org Received: (qmail 12726 invoked by uid 500); 17 Jul 2009 14:32:41 -0000 Mailing-List: contact click-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@incubator.apache.org Delivered-To: mailing list click-commits@incubator.apache.org Received: (qmail 12716 invoked by uid 99); 17 Jul 2009 14:32:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 14:32:41 +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, 17 Jul 2009 14:32:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4B9C223888CE; Fri, 17 Jul 2009 14:32:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r795100 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java Date: Fri, 17 Jul 2009 14:32:19 -0000 To: click-commits@incubator.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090717143219.4B9C223888CE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sabob Date: Fri Jul 17 14:32:18 2009 New Revision: 795100 URL: http://svn.apache.org/viewvc?rev=795100&view=rev Log: set table to sorted Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java?rev=795100&r1=795099&r2=795100&view=diff ============================================================================== --- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java (original) +++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/table/LargeDatasetDemo.java Fri Jul 17 14:32:18 2009 @@ -46,20 +46,16 @@ private CustomerService customerService; public LargeDatasetDemo() { - table = new Table() { - - /** - * Sorting must be done on Database, so we override Table build in - * sorting to do nothing. - */ - protected void sortRowList() { - } - }; + table = new Table(); // Setup customers table table.setClass(Table.CLASS_ITS); table.setSortable(true); + // We will sort the data ourselves. We set table sorted attribute to true + // so the table doesn't attempt to sort the data + table.setSorted(true); + Column column = new Column("name"); column.setWidth("140px;"); table.addColumn(column);