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 55168 - Changes in context.xml not saved and lost
Summary: Changes in context.xml not saved and lost
Status: RESOLVED WONTFIX
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on: 62787
Blocks:
  Show dependency tree
 
Reported: 2005-02-18 10:04 UTC by L Martinek
Modified: 2005-09-18 11:01 UTC (History)
5 users (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 L Martinek 2005-02-18 10:04:35 UTC
Open visual editor for context.xml, click to
Context Path field and type some text. Don't click
to another place, just close editor. You will not
be asked whether to save changes and changes will
be lost. 

If you click in editor to another place after the
change then file is marked as modified and you
will be asked to confirm changes.

This issue is similar to issue #55082 fo DD.
Comment 1 Pavel Buzek 2005-02-18 21:56:39 UTC
The problem is in j2eeserver (or j2eeeditor). Tomcat does not provide
this UI. Is works for app server, because it updates the beans as the
user is typing, but the config editor only updates when the property
is updated.
Comment 2 Pavel Buzek 2005-02-22 00:21:58 UTC
(this works for AS plugin because it uses customizers)
Comment 3 Pavel Buzek 2005-04-02 01:09:53 UTC
I realize that this is how the property sheet behaves _everywhere_ else in IDE.
I do not think this is something I need to workaround.
See:
1. open Properties for a file, type in a different name, click [x] to close it -
data lost
2. properties window for form objects - change a tooltip text, for example, and
close the property sheet w/o clicking anywhere - data lost
3. customizer of grid back layout - it embeds property sheet - change a value
and close the dialog - data lost
4. Tools | Options - again

I could go on forever. So.... I think this is in fact not a defect, it is a user
error. Property sheet behaves like this consistently. When you type a string
value simply hit the Enter key at the end, please.
Comment 4 zikmund 2005-04-04 09:09:04 UTC
I agree with Pavel. Removing fix-in-41. Libore speak up if you disagree.
Comment 5 _ ludo 2005-04-05 23:41:47 UTC
Very bad NetBeans behaviour...
We have a P2 on that: 57473

Should we write our own stringprop editor that listen to every key stroke?
Comment 6 Pavel Buzek 2005-04-06 01:39:08 UTC
It is really the same problem in 57473? It is not clear from the description.

Anyway, I was looking for another product that uses property sheet. I found one
(I will not name it, but it's a tool that is not based not netbeans). This one
updates the property when you leave the property editor. When the property
editor is in an editor it shows a "save/discard" dialog. If it is just a
properties window it updates the property w/o asking. That's ok with me if we do
the same in property editors, I just do not want to workaround it in one place.
Comment 7 Jiri Kopsa 2005-04-06 10:12:23 UTC
The behaviour of property sheets is bad in general, it needs to be fixed in the
future (this is not the only issue, a discussion has been started on an xdesign
maillist).

With regards to this issue (P2) and issue #57473 (P3):
* shouldn't the priorities be the same?
* could we fix all property sheets for 4.1?
* if not, can we waive 57473 and fix locally the context.xml property sheet
(which looks like and editor, but does not behave like that)

Adding Ludo and Peter J. on CC to make comments.
Comment 8 Jiri Kopsa 2005-04-06 17:16:17 UTC
!!! Please, disregard my previous comments! 
!!! I realized that the property sheet issue really is not the basic of #57473.

On the other hand, this issue is caused by a property sheet bug.
*A value of a sheet cell should be committed when the property sheet window is
being closed.*

Why did you Pavle set this to WONTFIX? I think we (I) should file a bug against
the property sheet and set this as dependant or invalid. Anybody has a clue what
is the property sheet's module?
Comment 9 _ ludo 2005-04-06 17:19:06 UTC
We need a fix in NB 4.1 FCS...  
issue #57473 is a P2, not a P3 bug...
Comment 10 Pavel Buzek 2005-04-06 17:44:56 UTC
see 57560 for the general problem in openide | property sheet
Comment 11 Pavel Buzek 2005-04-08 00:21:34 UTC
reopening, issue 57560 is resolved but it does not solve this problem
Comment 12 Pavel Buzek 2005-08-25 05:34:35 UTC
Stepane, this should go away when 62787 is fixed, right?
Comment 13 Sherold Dev 2005-08-25 08:56:10 UTC
Yes, we can close this issue when issue 62787 is fixed.
Comment 14 Sherold Dev 2005-09-18 11:01:27 UTC
-> WONTFIX, since the visual context.xml editor is no longer used