webwork/src/main/webwork/util BeanUtil.java,1.37,1.38

[email protected] Wed, 12 Nov 2003 18:04:19 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/util
In directory sc8-pr-cvs1:/tmp/cvs-serv30866/src/main/webwork/util

Modified Files:
	BeanUtil.java 
Log Message:
Add support for Timestamp editor, along with a testcase for it. Fix WW-92


Index: BeanUtil.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/util/BeanUtil.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- BeanUtil.java	9 Nov 2003 21:00:37 -0000	1.37
+++ BeanUtil.java	13 Nov 2003 02:04:16 -0000	1.38
@@ -17,6 +17,7 @@
 import java.util.*;
 import java.text.DateFormat;
 import java.math.BigDecimal;
+import java.sql.Timestamp;
 
 import org.apache.commons.logging.*;
 
@@ -84,6 +85,9 @@
 
       PropertyEditorManager.registerEditor(Date.class, DateEditor.class);
       PropertyEditorManager.registerEditor(Date[].class, DateEditor.class);
+
+      PropertyEditorManager.registerEditor(Timestamp.class, TimestampEditor.class);
+      PropertyEditorManager.registerEditor(Timestamp[].class, TimestampEditor.class);
 
       PropertyEditorManager.registerEditor(DateFormat.class, DateFormatEditor.class);
    }




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/