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 198585 - Auto-create JSF pages has a bug with "date primary keys"
Summary: Auto-create JSF pages has a bug with "date primary keys"
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 7.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-13 12:39 UTC by arvasko
Modified: 2011-05-23 09:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arvasko 2011-05-13 12:39:27 UTC
I have a table on my database that has a date field as the primary key. When I asked Netbeans to generate the JSF pages for my Web Application Project, the Controllers got errors. In short: the "getKey" method of FacesConverter can't parse Date to String.

This bug happens also with embedded primary keys (something + date field).

Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_18
Runtime = Java HotSpot(TM) Client VM 16.0-b13
Comment 1 Martin Fousek 2011-05-20 13:10:15 UTC
Fixed in trunk: http://hg.netbeans.org/web-main/rev/0f664553651e.
I will transplant it into release701_base.
Comment 2 Quality Engineering 2011-05-21 08:51:17 UTC
Integrated into 'main-golden', will be available in build *201105210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/0f664553651e
User: Martin Fousek <marfous@netbeans.org>
Log: #198585 - Auto-create JSF pages has a bug with "date primary keys"
Comment 3 Martin Fousek 2011-05-23 09:25:24 UTC
Transplanted into release701 branch in http://hg.netbeans.org/releases/rev/497231d6bee0.