continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ken...@apache.org
Subject svn commit: r422933 - in /maven/continuum/trunk/continuum-webapp/src/main: java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java webapp/WEB-INF/continuum.tld
Date Tue, 18 Jul 2006 00:49:58 GMT
Author: kenney
Date: Mon Jul 17 17:49:57 2006
New Revision: 422933

URL: http://svn.apache.org/viewvc?rev=422933&view=rev
Log:
Revived DateTag since it's still used in buildResult.
The buildResults uses the default extremecomponents DateCell,
but that only works in table columns so that's unusable here.

Added:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java
      - copied, changed from r366178, maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java
Modified:
    maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld

Copied: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java
(from r366178, maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java)
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java?p2=maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java&p1=maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java&r1=366178&r2=422933&rev=422933&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/view/jsp/ui/DateTag.java
Mon Jul 17 17:49:57 2006
@@ -1,5 +1,12 @@
 package org.apache.maven.continuum.web.view.jsp.ui;
 
+import com.opensymphony.webwork.views.jsp.ui.TextareaTag;
+import com.opensymphony.xwork.ActionContext;
+import com.opensymphony.xwork.TextProvider;
+import com.opensymphony.xwork.util.OgnlValueStack;
+
+import javax.servlet.jsp.JspException;
+
 import java.io.IOException;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
@@ -8,25 +15,18 @@
 import java.util.Iterator;
 import java.util.List;
 
-import javax.servlet.jsp.JspException;
-
-import com.opensymphony.webwork.views.jsp.ui.TextTag;
-import com.opensymphony.xwork.ActionContext;
-import com.opensymphony.xwork.TextProvider;
-import com.opensymphony.xwork.util.OgnlValueStack;
-
 /**
  * First attempt at creating a date tag for the webwork framework. The tag will
  * format a date by using either a specified format attribute, or by falling
- * back on to a globally defined 'webwork.date' property. 
+ * back on to a globally defined 'webwork.date' property.
  * When nice="true" is specified, it will return a human readable string (in 2 hours, 3 minutes).
  *
  * From http://jira.opensymphony.com/browse/WW-805
- * 
+ *
  * @author <a href="mailto:philip.luppens@gmail.com">Philip Luppens</a>
  */
 public class DateTag
-    extends TextTag
+    extends TextareaTag
 {
     /*
      * the name of our property which we will use if the optional format

Modified: maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld?rev=422933&r1=422932&r2=422933&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld (original)
+++ maven/continuum/trunk/continuum-webapp/src/main/webapp/WEB-INF/continuum.tld Mon Jul 17
17:49:57 2006
@@ -7,6 +7,28 @@
   <uri>continuum</uri>
 
   <tag>
+    <name>date</name>
+    <tagclass>org.apache.maven.continuum.web.view.jsp.ui.DateTag</tagclass>
+    <bodycontent>JSP</bodycontent>
+    <info>date tag</info>
+    <attribute>
+      <name>name</name>
+      <required>true</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>format</name>
+      <required>false</required>
+      <rtexprvalue>false</rtexprvalue>
+    </attribute>
+    <attribute>
+      <name>nice</name>
+      <required>false</required>
+      <rtexprvalue>true</rtexprvalue>
+    </attribute>
+  </tag>
+
+  <tag>
     <name>data</name>
     <tagclass>org.apache.maven.continuum.web.view.jsp.ui.DataTag</tagclass>
     <bodycontent>JSP</bodycontent>



Mime
View raw message