You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/06/21 09:57:54 UTC
svn commit: r956482 -
/myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/reference/time.jsp
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/>