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 113973 - sun-web.xml undo action does not work correctly
Summary: sun-web.xml undo action does not work correctly
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 11:43 UTC by Radim Roska
Modified: 2007-08-30 10:06 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 Radim Roska 2007-08-28 11:43:09 UTC
Product Version: NetBeans IDE Dev (Build 200708280000) Java: 1.6.0_02-ea; 
Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)

1. edit something for example in general section write some error url
2. check it in xml section
3. ctrl+z - undo action
4. check general section again - its still origin error url..
Comment 1 Radim Roska 2007-08-28 11:50:14 UTC
well i guess its problem with synchronizing xml -> "data model" ...if you make some change in xml section, it doesnt
effect other sections(general,servlet...)

that means its much more serious...
Comment 2 Radim Roska 2007-08-28 12:01:06 UTC
another problem is that if you create servlet like new servlet, it is added to servlet section of sun-web.xml, but its
not in xml file.

im not sure if its the same issue....if it isnt..i should file another issue.
Comment 3 Erno Mononen 2007-08-28 12:02:51 UTC
Passing to sunappserv.
Comment 4 _ pcw 2007-08-28 16:04:15 UTC
The issue with undo I've seen before, I'll check it out.

Regarding the servlet comment, if I understand you correct, you are wondering why adding a servlet to a web application
would cause a servlet entry to be show visually in the GUI view but not in the XML?

That it does not contain any data of any importance (merely the name).  Trivial entries such as these are not saved to
XML unless the user adds them to the sun descriptor explicitly (e.g. via <add servlet> button on Servlets page or by
typing it in directly)
Comment 5 Radim Roska 2007-08-28 16:13:08 UTC
ok..i thought that this could be possible reason.

but problem with editing xml -> application of changes in GUI is quite serious i guess :).
Comment 6 _ pcw 2007-08-29 02:54:57 UTC
I think I fixed this.  I'm going to be testing my change much more, but I committed it just now.  Please test against
tonights' nightly build or later and reopen with specifics if you don't think it's fixed.

http://serverplugins.netbeans.org/source/browse/serverplugins/sun/sunddui/src/org/netbeans/modules/j2ee/sun/ddloaders/multiview/BaseSectionNode.java?r1=1.11&r2=1.12
Comment 7 Radim Roska 2007-08-30 10:06:45 UTC
Yes, its fixed.