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 78404 - Confirmed should not be asked after actual save happened
Summary: Confirmed should not be asked after actual save happened
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 23:12 UTC by davisn
Modified: 2016-07-07 08:56 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 davisn 2006-06-19 23:12:05 UTC
If user open web.xml file, make a change, click save icon and close the web.xml
file, Question dialog unexpectedly appears to confirm the recently save. 

STEPS TO REPORDUCE:
1. Install AppServer 9PE SDK
2. Install Netbean IDE 5.5 - nightly build
3. Open ..\samples\javaee5\enterprise\servlet-stateless-ear project
4. Open web.xml file > click Security tab > expand Login Configuration 
    Change Login Configure type from None to Basic
    Realm Name: file
5. Click Save All icon > click x to close the web.xml file
BUG:
    Question dialog appears
    Since I already click Save, the confirming from Question dialog is redundant
Comment 1 Sherold Dev 2006-06-21 08:45:05 UTC
-> web/dd editor
Comment 2 Erno Mononen 2006-06-28 13:22:12 UTC
It should be noted that this issue exists also for other elements in web.xml and 
also in other multiview editors (like ejb-jar.xml).
Comment 3 Erno Mononen 2006-08-15 15:36:53 UTC
The problem here is that the components in web.xml and ejb-jar.xml editors 
don't modify the model until they lose focus. Since clicking 'save all' doesn't 
cause them to lose focus the file is not really modified and therefore changes 
are not actually saved at this point. When you close the file, the underlying 
framework flushes the changes to the file and hence the confirmation dialog is 
displayed. Fixing this would require extensive changes (I'd need to either 
change all components in web.xml and ejb-jar.xml editors to modify the file 
immediately or to modify the xml/multiview framework) and it would be quite 
risky to implement these changes for 5.5. I'm therefore setting the TM to Dev. 
Comment 4 Erno Mononen 2008-02-27 13:00:35 UTC
Needs to be addressed post 6.1.
Comment 5 pslechta 2009-07-28 21:57:35 UTC
Still happens in NB 6.8 dev builds...
Comment 6 Martin Balin 2016-07-07 08:56:34 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss