This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 105147 - Converters for date and time types
Summary: Converters for date and time types
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Binding (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 115659 122237 122555 154963 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-30 14:54 UTC by Jan Stola
Modified: 2008-12-09 15:10 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2007-05-30 14:54:30 UTC
The current version of the Beans Binding library doesn't have converters for 
date and time types e.g.

java.util.Date
java.sql.Date
java.sql.Time
java.sql.Timestamp

These types seem too specialized to be handled directly by the binding library. 
The users have different requirements on the format/style of editing. So, it is 
fine to let the user provide his/her own converter. On the other hand it is not 
nice that the generated application (which uses these types) throws 
PropertyResolverExceptions. So, maybe we should provide some basic converters 
directly in the GUI builder (e.g. wrappers for DateFormat.getInstance() etc.)
Comment 1 Tomas Pavek 2007-09-20 10:26:42 UTC
*** Issue 115659 has been marked as a duplicate of this issue. ***
Comment 2 Jan Stola 2007-11-20 13:38:27 UTC
*** Issue 122237 has been marked as a duplicate of this issue. ***
Comment 3 Jan Stola 2007-11-28 09:25:55 UTC
The latest version of the library (included in NetBeans 6.0) no longer throws PropertyResolverExceptions. It throws 
ClassCastException, but the problem remains, of course.
Comment 4 Jan Stola 2007-11-28 09:26:54 UTC
*** Issue 122555 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Vagner 2008-12-09 15:10:07 UTC
*** Issue 154963 has been marked as a duplicate of this issue. ***