myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r956482 - /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp
Date Mon, 21 Jun 2010 07:57:54 GMT
Author: lofwyr
Date: Mon Jun 21 07:57:53 2010
New Revision: 956482

URL: http://svn.apache.org/viewvc?rev=956482&view=rev
Log:
TOBAGO-894: Support date pattern "MM.yyyy" for <tx/tc:date>

Modified:
    myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp

Modified: myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp?rev=956482&r1=956481&r2=956482&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp (original)
+++ myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp Mon
Jun 21 07:57:53 2010
@@ -1,4 +1,4 @@
-<%@ page import="java.util.Date" %>
+<%@ page import="java.text.SimpleDateFormat" %>
 <%--
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -21,7 +21,7 @@
 <%@ taglib tagdir="/WEB-INF/tags/layout" prefix="layout" %>
 
 <%
-  request.setAttribute("now", new Date(100000000000L));
+  request.setAttribute("now", new SimpleDateFormat("yyyy-MM-dd").parse("1980-03-22"));
 %>
 
 <layout:overview>
@@ -70,7 +70,7 @@
         <tc:cell/>
 
         <tx:date label="Month" value="#{now}">
-          <f:convertDateTime pattern="MMMMM yyyy"/>
+          <f:convertDateTime pattern="MM/yyyy"/>
         </tx:date>
         <tc:cell/>
 



Mime
View raw message