click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r753033 - /incubator/click/trunk/click/examples/src/org/apache/click/examples/page/introduction/HelloWorld.java
Date Thu, 12 Mar 2009 22:03:51 GMT
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);
+    }
 }



Mime
View raw message