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/03/12 23:03:51 UTC

svn commit: r753033 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java

Author: sabob
Date: Thu Mar 12 22:03:50 2009
New Revision: 753033

URL: http://svn.apache.org/viewvc?rev=753033&view=rev
Log:
updated hello world example to use the Page model instead of autobinding which can be confusing for new users

Modified:
    incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java

Modified: incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java?rev=753033&r1=753032&r2=753033&view=diff
==============================================================================
--- incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java (original)
+++ incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java Thu Mar 12 22:03:50 2009
@@ -33,6 +33,9 @@
  */
 public class HelloWorld extends BorderPage {
 
-    public Date time = new Date();
+    private Date time = new Date();
 
+    public HelloWorld() {
+        addModel("time", time);
+    }
 }