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 2009/07/07 21:57:38 UTC
svn commit: r791962 -
/incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml
Author: sabob
Date: Tue Jul 7 19:57:38 2009
New Revision: 791962
URL: http://svn.apache.org/viewvc?rev=791962&view=rev
Log:
doc updates
Modified:
incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml
Modified: incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml?rev=791962&r1=791961&r2=791962&view=diff
==============================================================================
--- incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml (original)
+++ incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-configuration.xml Tue Jul 7 19:57:38 2009
@@ -207,6 +207,7 @@
<programlisting language="xml"><click-app>
+ <!-- Specify the Java package where Page classes can be found -->
<pages package="com.mycorp.page"/>
<mode value="profile"/>
@@ -218,10 +219,12 @@
<programlisting language="xml"><click-app charset="UTF-8" locale="de">
+ <!-- Specify the Java package where Page classes can be found -->
<pages package="com.mycorp.banking.page">
- <page path="index.htm" classname="com.mycorp.page.Home"/>
+ <page path="index.htm" classname="Home"/>
</pages>
+ <!-- Specify a second Java package where Page classes can be found -->
<pages package="com.mycorp.common.page"/>
<format classname="com.mycorp.util.Format"/>
@@ -270,7 +273,7 @@
Locale. If this value is defined it will override Locale returned by the request.
Please see the Context
<ulink url="../../click-api/org/apache/click/Context.html#getLocale()">getLocale()</ulink>
- for details. For example the folliwing configuration sets the application
+ for details. For example the following configuration sets the application
character set to UTF-8 and the default Locale as German (de):
</para>
@@ -618,19 +621,23 @@
be a long number value:
</para>
- <programlisting language="xml"><page path="login.htm" classname="com.mycorp.page.Login">
- <header name="Pragma" value="no-cache"/>
- <header name="Expires" value="1" type="Date"/>
-</page></programlisting>
+ <programlisting language="xml"><pages package="com.mycorp.page">
+ <page path="login.htm" classname="Login">
+ <header name="Pragma" value="no-cache"/>
+ <header name="Expires" value="1" type="Date"/>
+ </page>
+</pages></programlisting>
<para>If you wanted to enable caching for a particular page you could set
the following page cache control header. This will mark the page as cachable
for a period of 1 hour after which it should be reloaded.
</para>
- <programlisting language="xml"><page path="home.htm" classname="com.mycorp.page.Home">
- <header name="Cache-Control" value="max-age=3600, public, must-revalidate"/>
-</page></programlisting>
+ <programlisting language="xml"><pages package="com.mycorp.page">
+ <page path="home.htm" classname="Home">
+ <header name="Cache-Control" value="max-age=3600, public, must-revalidate"/>
+ </page>
+</pages></programlisting>
<para>To apply header values globally define header values in the headers
element. For example: