Feature Requests item #648435, was opened at 2002-12-04 11:24 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354754&aid=648435&group_id=4754
Category: framework Group: None Status: Open Resolution: None Priority: 5 Submitted By: Adam Greene (ccm682) Assigned to: Nobody/Anonymous (nobody) Summary: Using java.util.Date in DatePicker Initial Comment: Currently the DatePicker utilizes java.sql.Date as it's expected source for the date value, which causes problems. You cannot hand it a java.util.Date or a java.sql.Timestamp. If it was made to use java.util.Date then you could hand it a java.sql.Date, a java.sql.Timestamp or a java.util.Date. Which would be more flexible. The reason I suggest this is that we use Torque for our O/R bindings and we are allows having to create extra methods to create a java.sql.Date object and copy the java.sql.Timestamp into it. ---------------------------------------------------------------------- >Comment By: Adam Greene (ccm682) Date: 2002-12-05 16:49 Message: Logged In: YES user_id=659256 The problem we run into that our database software return a java.util.Date, but in actuality assigns a java.sql.Timestamp to that java.util.Date and when we try to pass it to the DatePicker, it throws a ClassCastException as Timestamp and sql.Date are direct descendants of java.util.Date (which means they are not polymorphically compatible). ---------------------------------------------------------------------- Comment By: Malcolm Edgar (malcolm_edgar) Date: 2002-12-04 18:08 Message: Logged In: YES user_id=592290 DatePicker initially used java.util.Date, however it was felt that java.sql.Date better represents a real date. Internally however java.sql.Date just makes a few depricated method calls illegal and provides some parsing methods. It still stores its value in milliseconds. So java.sql.Date comparisons can still be different on the same date. Sun's design of the date stuff is pretty poor. In summary I dont have a problem changing this back to java.util.Date, though there may be some impact existing 2.2 applications ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=354754&aid=648435&group_id=4754 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
