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 114696 - Reopening projects saved in design view opens to jsp view
Summary: Reopening projects saved in design view opens to jsp view
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on: 58136
Blocks: 113272
  Show dependency tree
 
Reported: 2007-09-04 22:51 UTC by _ krystyna
Modified: 2007-10-24 00:26 UTC (History)
4 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 _ krystyna 2007-09-04 22:51:47 UTC
NetBeans IDE 6.0 Beta 1 (Build 200709041200)
Windows
Jdk1.6.0_01

1. Create a project and drop a component on the designer. 
2. Either press "save all" icon for the page followed by File -> "Close WebAppXX" 
   (or File-> "Close WebAppXX" and then save all)
3. File-> Open Recent Project
>The page opens to .jsp view and not the design view


After talking with Quy and Po-Ting, this is likely to have been
caused by the fix to 105318.

This also affects migrated projects. Although this does not affect functionality,
it does affect the visual appearance and we might want to consider this as a P1.
Comment 1 Quy Nguyen 2007-09-04 23:38:44 UTC
Originally, both the 'open' and 'edit' actions for JSP files caused the designer to open.  This was fixed in 105318, so
now the 'edit' action opens the JSP tab, which is the correct behavior.  

The issue here is that the project utilities favor the edit action over the open action.  The same issue occurs with
other multiview components, including the form editor.  Note that the original view when closing does not matter during
project reopen since that state does not appear to be saved.
Comment 2 Milan Kubec 2007-09-05 09:04:26 UTC
Project ui cannot save the way how the file was displayed when the project was closed, it can be any tab, compare:
JSP -> JSP, Java, Design
Sun Web XML file -> General, Servlets, Security, Web Services, Messaging, Environment, XML
It needs to be saved with the file and its loader then will switch to correct view.

Removing regression kw since, it never worked this way.

Acc. to Bug Priority Guidelines it seems that P3 is proper priority.

Reassigning back.
Comment 3 _ potingwu 2007-09-05 17:20:10 UTC
Quy, looks like fix in 105318 makes the whole UI worse (P3 to P1/2)! You may want to redo your fix.
Comment 4 Quy Nguyen 2007-09-05 17:46:24 UTC
The fix should be for the project open utilities to use the OpenCookie before the EditCookie when opening files from a
project.  The default when opening a file from a previously closed project should be the default opening action (i.e.
the action when double-clicking on the file from the project node).
Comment 5 _ potingwu 2007-09-05 18:16:37 UTC
There is an old request for this issue, with proposal:
> 3. Change project opening to also call the default action on the file's node.
Comment 6 Milos Kleint 2007-09-05 18:57:33 UTC
calling open instead of edit will not fix the issue. it will just move it elsewhere.
after your suggested change it will do this: "if you close the document in jsp view it will open in design view"
which is equally wrong as the issue you are reporting
-> WONTFIX.

Comment 7 _ potingwu 2007-09-12 18:54:17 UTC
> Quy, looks like fix in 105318 makes the whole UI worse (P3 to P1/2)! You may want to redo your fix.

Quy, I think we better back out your fix for 105318. This issue is more serious than that one!
Comment 8 Quy Nguyen 2007-09-12 20:46:35 UTC
Checking in src/org/netbeans/modules/visualweb/project/jsfloader/JsfJspDataObject.java;
/cvs/visualweb/project/jsfloader/src/org/netbeans/modules/visualweb/project/jsfl
oader/JsfJspDataObject.java,v  <--  JsfJspDataObject.java
new revision: 1.10; previous revision: 1.9
done
Comment 9 _ krystyna 2007-10-24 00:26:00 UTC
Verified NetBeans IDE Dev (Build 200710231200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02