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 75675 - Misleading messages in generated JSF pages
Summary: Misleading messages in generated JSF pages
Status: RESOLVED DUPLICATE of bug 75653
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-28 10:52 UTC by Petr Blaha
Modified: 2006-04-29 19:03 UTC (History)
0 users

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 Petr Blaha 2006-04-28 10:52:11 UTC
[Beta build, 20060428]
Steps:
1) I generated JSF pages form some entity classes
2) try to add new entry, in form is a text field for ID of this new entry. I let
the field empty and click to Create link
3) On next page the about successfully creation was displayed. But the new entry
isn't listed in the table and error messages are printed in server's log:

Caused by: org.apache.derby.client.am.SqlException: Column 'ID'  cannot accept a
NULL value.
        at org.apache.derby.client.am.Statement.completeExecute(Unknown Source)

ERROR: we should improve error reporting in generated JSF pages.
Comment 1 Pavel Buzek 2006-04-28 15:00:02 UTC
If I understand correctly you are trying to leave the ID field empty bcs you are
using automatic generation of values. Correct? If this is so I think I just
fixed this yesterday :-) If you have @GeneratedValue on the Id field it will not
show this field in New.jsp and it will make it read only in the Edit.jsp. Please
verify.

It you meant something else please reopen.
Comment 2 Pavel Buzek 2006-04-28 15:03:32 UTC
Petr explained to me that the other problem is that for non generated values the
page does not display any error message when you leave empty Id but fails. 
Will fix.
Comment 3 Pavel Buzek 2006-04-29 19:03:05 UTC
Issue 75653 describes more general detail with error reporting.

*** This issue has been marked as a duplicate of 75653 ***