click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r949399 - /click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java
Date Sat, 29 May 2010 15:04:57 GMT
Author: sabob
Date: Sat May 29 15:04:57 2010
New Revision: 949399

URL: http://svn.apache.org/viewvc?rev=949399&view=rev
Log:
Page Action example. CLK-677

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java?rev=949399&r1=949398&r2=949399&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/general/PageAction.java
Sat May 29 15:04:57 2010
@@ -29,7 +29,7 @@ public class PageAction extends BorderPa
 
     private static final long serialVersionUID = 1L;
 
-    private PageLink link = new PageLink("link", PageAction.class);
+    private PageLink link = new PageLink("link", "Get Date", PageAction.class);
 
     public PageAction() {
         addControl(link);
@@ -42,6 +42,6 @@ public class PageAction extends BorderPa
      * This method will be invoked when the link is clicked.
      */
     public Partial getDate() {
-        return new Partial(format.currentDate());
+        return new Partial(format.currentDate("MMM dd, yyyy HH:MM:ss"));
     }
 }



Mime
View raw message