Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 45316 invoked from network); 31 Mar 2010 08:11:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Mar 2010 08:11:17 -0000 Received: (qmail 60995 invoked by uid 500); 31 Mar 2010 08:11:17 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 60978 invoked by uid 500); 31 Mar 2010 08:11:17 -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 60970 invoked by uid 99); 31 Mar 2010 08:11:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Mar 2010 08:11:17 +0000 X-ASF-Spam-Status: No, hits=-1478.3 required=10.0 tests=ALL_TRUSTED,AWL 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; Wed, 31 Mar 2010 08:11:15 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8182C23889B2; Wed, 31 Mar 2010 08:10:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r929429 - in /click/trunk/click: documentation/docs/ documentation/dtds/ documentation/xdocs/src/docbook/click/ framework/src/org/apache/click/service/ Date: Wed, 31 Mar 2010 08:10:55 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100331081055.8182C23889B2@eris.apache.org> Author: sabob Date: Wed Mar 31 08:10:55 2010 New Revision: 929429 URL: http://svn.apache.org/viewvc?rev=929429&view=rev Log: removed "public" autobinding mode Modified: click/trunk/click/documentation/docs/click-dtd.html click/trunk/click/documentation/dtds/click-2.2.dtd click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml click/trunk/click/framework/src/org/apache/click/service/ConfigService.java click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Modified: click/trunk/click/documentation/docs/click-dtd.html URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/docs/click-dtd.html?rev=929429&r1=929428&r2=929429&view=diff ============================================================================== --- click/trunk/click/documentation/docs/click-dtd.html (original) +++ click/trunk/click/documentation/docs/click-dtd.html Wed Mar 31 08:10:55 2010 @@ -56,7 +56,7 @@ Click application XML descriptor Documen <!ELEMENT pages (page*, excludes*)> <!ATTLIST pages package CDATA #IMPLIED> <!ATTLIST pages automapping (true|false) "true"> - <!ATTLIST pages autobinding (default|annotation|public|none) "default"> + <!ATTLIST pages autobinding (default|annotation|none) "default"> <!-- Page definition. --> <!ELEMENT page (header*)> Modified: click/trunk/click/documentation/dtds/click-2.2.dtd URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/dtds/click-2.2.dtd?rev=929429&r1=929428&r2=929429&view=diff ============================================================================== --- click/trunk/click/documentation/dtds/click-2.2.dtd (original) +++ click/trunk/click/documentation/dtds/click-2.2.dtd Wed Mar 31 08:10:55 2010 @@ -39,7 +39,7 @@ - + Modified: click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml URL: http://svn.apache.org/viewvc/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml?rev=929429&r1=929428&r2=929429&view=diff ============================================================================== --- click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml (original) +++ click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml Wed Mar 31 08:10:55 2010 @@ -293,7 +293,7 @@ <!ELEMENT pages (page*)> <!ATTLIST pages package CDATA #IMPLIED> <!ATTLIST pages automapping (true|false) "true"> - <!ATTLIST pages autobinding (default|annotation|public|none) "default"> + <!ATTLIST pages autobinding (default|annotation|none) "default"> The pages element can specify a default package name which is prepended to the classname of any pages defined. @@ -548,23 +548,23 @@ change-password.htm => Chang } - In the example above the employeeForm and - myTable controls were not added to the page. Also note - that Form and Table do not have their names defined. + Note in the above example that the employeeForm + and myTable controls were not added to the page. Also + note that Form and Table do not have their names defined. - When autobinding is enabled, ClickServlet will create a new Page and - add the public controls to the page. In the example above the + When autobinding is enabled, ClickServlet will create a new Page + and add the public controls to the page. Following the example above the employeeForm and myTable will be - added to the page, as if you had invoked, + added to the page, similar to calling addControl(employeeForm) and addControl(myTable). - The control's names were not defined so ClickServlet will set their - names to the value of their field/variable name. In this case the Form - name will be set to employeeForm while the Table name - will set to myTable. + Furthermore, the control names were not defined so ClickServlet + will set their names to the value of their field/variable name. In this + case the Form name will be set to employeeForm while + the Table name will set to myTable. The above example is thus a shorthand way of writing the following: Modified: click/trunk/click/framework/src/org/apache/click/service/ConfigService.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/ConfigService.java?rev=929429&r1=929428&r2=929429&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/service/ConfigService.java (original) +++ click/trunk/click/framework/src/org/apache/click/service/ConfigService.java Wed Mar 31 08:10:55 2010 @@ -119,7 +119,7 @@ public interface ConfigService { public static final String NOT_FOUND_PATH = "/click/not-found.htm"; /** The page auto binding mode. */ - public enum AutoBinding { DEFAULT, PUBLIC, ANNOTATION, NONE }; + public enum AutoBinding { DEFAULT, ANNOTATION, NONE }; /** * The servlet context attribute name. The ClickServlet stores the Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=929429&r1=929428&r2=929429&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original) +++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Wed Mar 31 08:10:55 2010 @@ -975,7 +975,7 @@ public class XmlConfigService implements autobinding = AutoBinding.ANNOTATION; } else if ("public".equalsIgnoreCase(autobindingStr)) { - autobinding = AutoBinding.PUBLIC; + autobinding = AutoBinding.DEFAULT; } else if ("none".equalsIgnoreCase(autobindingStr)) { autobinding = AutoBinding.NONE; @@ -1782,9 +1782,6 @@ public class XmlConfigService implements return fieldArray; - } else if (mode == AutoBinding.PUBLIC) { - return pageClass.getFields(); - } else if (mode == AutoBinding.ANNOTATION) { Map fieldMap = getAnnotatedBindableFields(pageClass);