Return-Path: Delivered-To: apmail-incubator-click-commits-archive@minotaur.apache.org Received: (qmail 24094 invoked from network); 7 Jun 2009 12:55:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jun 2009 12:55:51 -0000 Received: (qmail 8442 invoked by uid 500); 7 Jun 2009 12:56:02 -0000 Delivered-To: apmail-incubator-click-commits-archive@incubator.apache.org Received: (qmail 8429 invoked by uid 500); 7 Jun 2009 12:56:02 -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 8419 invoked by uid 99); 7 Jun 2009 12:56:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 12:56:02 +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; Sun, 07 Jun 2009 12:56:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8D59D238888F; Sun, 7 Jun 2009 12:55:40 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r782382 - /incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml Date: Sun, 07 Jun 2009 12:55:40 -0000 To: click-commits@incubator.apache.org From: medgar@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090607125540.8D59D238888F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: medgar Date: Sun Jun 7 12:55:40 2009 New Revision: 782382 URL: http://svn.apache.org/viewvc?rev=782382&view=rev Log: updated doco Modified: incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml Modified: incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml URL: http://svn.apache.org/viewvc/incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml?rev=782382&r1=782381&r2=782382&view=diff ============================================================================== --- incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml (original) +++ incubator/click/trunk/tools/docbook/src/docbook/click/chapter-configuration.xml Sun Jun 7 12:55:40 2009 @@ -133,8 +133,72 @@ strategy is configured with the Click application mode element in the "click.xml" config file, covered next. + + + + + Type Converter Class + + + The ClickServlet uses the OGNL library for type coercion when binding + request parameters to bindable fields. The default type converter class + use is RequestTypeConverter. + To specify your own type converter configure a type-converter-class + init parameter with the ClickServlet. For example: + + + + <servlet> + <servlet-name>ClickServlet</servlet-name> + <servlet-class>org.apache.click.ClickServlet</servlet-class> + <load-on-startup>0</load-on-startup> + <init-param> + <param-name>type-converter-class</param-name> + <param-value>com.mycorp.util.CustomTypeConverter</param-value> + </init-param> + </servlet> + + + + + + Config Service Classs + + Click uses a single application configuration service which is + instantiated by the ClickServlet at startup. This service defines the + applications configuration and is used the ClickServlet to map request + to pages amongst other things. + + + + Once the ConfigService has been initialized it is stored in the + ServletContext using the key ConfigService + The default ConfigService is XmlConfigService. + To us an alternative configuration service specify a config-service-class + context parameter. For example: + + + +<web-app xmlns="http://java.sun.com/xml/ns/j2ee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" + version="2.4"> + + ... + + <context-param> + <param-name>config-service-class</param-name> + <param-value>com.mycorp.service.CustomConfigSerivce</param-value> + </context-param> + + ... + + </web-app> + + +