click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r786155 - /incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-introduction.xml
Date Thu, 18 Jun 2009 16:36:37 GMT
Author: sabob
Date: Thu Jun 18 16:36:37 2009
New Revision: 786155

added paragraph introducing the @bindable public property feature.


Modified: incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-introduction.xml
--- incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-introduction.xml
+++ incubator/click/trunk/click/documentation/xdocs/src/docbook/click/chapter-introduction.xml
Thu Jun 18 16:36:37 2009
@@ -130,7 +130,7 @@
     <para>The page model is then merged with the template which substitutes
     the <varname>$time</varname> reference with the <emphasis>Date</emphasis>
-    object. Velocity then renders the merged template which looks something like:
+    object. Velocity then renders the merged template as:
     <figure id="hello-world-screenshot">
@@ -198,6 +198,15 @@
     out on the compiler refactoring capabilities provided with modern IDEs.
+    <para>If you're wondering about why the <varname>myLink</varname> and
+    <varname>msg</varname> variables are declared as <literal>@Bindable</literal>
+    <literal>public</literal>, this is a short-hand way instructing Click to
+    automatically bind request parameters to Page variables. Additionally
+    these variables will be automatically added to the Page model. For more
+    information please see the section
+    <link linkend="request-param-auto-binding">Request Parameter Auto Binding</link>.
+    </para>
     <para>Back to our example, in the page template we define an HTML link and
     have the <varname>myLink</varname> control render the link's href attribute:

View raw message