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 82490 - Missing notification/validation when entered wrong values
Summary: Missing notification/validation when entered wrong values
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Matthew Bohm
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-11 14:52 UTC by Jaroslav Pospisil
Modified: 2008-09-05 20:10 UTC (History)
0 users

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 Jaroslav Pospisil 2006-08-11 14:52:01 UTC
Build 200608110000,jdk1.6.0

1)Create web module with JSF support on glassfish.
2)Create Entity classes from database (select Customer table)
3)Create JSF Pages from Entity class (select both previously created entity
classes )
4)Run web module
5)In browser create new Customer and insert too long string in City (it's
restricted to 2 letters)
6)Click Create
7)ERROR: You are redirected to Customers table view,but no customer is added and
you have to go to Netbeans log to find,what's the problem.There's only Rollback
Transaction notice in the browser.

It's bad behaviour,user should be somehow notified he entered bad value and the
application should stay on New Customer page,rather than redirecting away.
Comment 1 Pavel Buzek 2006-08-25 20:04:49 UTC
This would be a really nice enhancement to add validation into the generator,
but no time to do it in 5.5. Also, we would first need to generate more info
about the constraints in DB 2 Java, such as column lengths. That should also be
doable.
Comment 2 _ potingwu 2008-09-02 19:53:41 UTC
"Entity class" issue.
Comment 3 Matthew Bohm 2008-09-05 20:10:18 UTC
As of 65, we do generate required checks for non-nullable columns, but we do not generate any checks based on column
lengths, so this is a possible enhancement.