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 190766 - "Add" button in entity chooser works the same as "Add All"
Summary: "Add" button in entity chooser works the same as "Add All"
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: REST (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-05 12:35 UTC by Denis Anisimov
Modified: 2010-10-06 03:18 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 Denis Anisimov 2010-10-05 12:35:23 UTC
- Invoke "RESTful Web Services from Entity Classes... ".
- Select just one entity from the left list.
- Press "Add" button.
Result : all entities will be added.
So "Add" behaves the same as "Add All".
Only selected entity should be added.
Comment 1 Denis Anisimov 2010-10-05 12:47:59 UTC
The description is not accurate actually.
In my case chosen entity depends on all other entities.
"Add" put into "selected" list "closure" for chosen entity.
So this is designed behavior.

But it is unclear from user point of view.
First of all "Remove" button could be used to remove added entities as deps.
So such "closure" addition is inconsistent  in this dialog.
User should be notified somehow that other entities are added as "closure" or
there is no need in "closure" in selected entities list at all.
It seems resources for "closure" will be generated automatically no matter
of their selection.
Comment 2 Denis Anisimov 2010-10-05 13:43:09 UTC
Closure entities are required only for Panel validation.
There is no need to move them into the Selected list for avoiding 
inconsistency.
So I have moved closure calculation to the resource model creation . It is used for validation.

changeset:   178794:2e496586a30c
user:        Denis Anisimov <ads@netbeans.org>
date:        Tue Oct 05 17:32:20 2010 +0400
summary:     Fix for BZ#190766 -  "Add" button in entity chooser works the same as "Add All"
Comment 3 Quality Engineering 2010-10-06 03:18:35 UTC
Integrated into 'main-golden', will be available in build *201010060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/2e496586a30c
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#190766 -  "Add" button in entity chooser works the same as "Add All"