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.
NB trunk build 05310000 XP JDK1.6.0_01 Both Outline and Webform have context menu entry to "Edit JSP Source" but it is a no-op. Workaround by going directly to JSP via webform JSP tab. Regression from 5.5.1
It works for both cases for me. Does it only happen with JDK 6?
It fails with both jdk1.5.0_11 and 1.6.0_01 on a new project. Once you click on JSP tab, context menu will then always open to JSP source. So: 1. Close all projects in multiview and restart IDE (a fresh userdir is not necessary) and create a new project 2. context menu on webform - context menu to edit jsp source doesn't work 3. drop a button on webform - context menu to edit jsp source still doesn't work 4. click on JSP tab to open to JSP source, close, return to designer, and then try context menu to edit jsp source - then it will work. 5. next new project you will get same behavior as above steps.
OK, so the problem occures only after the project is created, and after one switches to JSP by hand, it goes away. Anyway, I've checked that the action calls edit cookie on JsfJspDataObject, and why it doesn't work is up to the loader (there is some suspicious 'redirect' API present). Passing to the owner.
Problem is still here: trunk build 0720
*** Issue 102533 has been marked as a duplicate of this issue. ***
Fixed the JSP open context menu entry. Checking in src/org/netbeans/modules/visualweb/project/jsfloader/JsfJavaEditorSupport.java; /cvs/visualweb/project/jsfloader/src/org/netbeans/modules/visualweb/project/jsfloader/JsfJavaEditorSupport.java,v <-- JsfJavaEditorSupport.java new revision: 1.5; previous revision: 1.4 done Checking in src/org/netbeans/modules/visualweb/project/jsfloader/JsfJspEditorSupport.java; /cvs/visualweb/project/jsfloader/src/org/netbeans/modules/visualweb/project/jsfloader/JsfJspEditorSupport.java,v <-- JsfJspEditorSupport.java new revision: 1.4; previous revision: 1.3 done
Verified fixed in NetBeans IDE 6.0 Beta 1 (Build 200709050000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Fix backed out. It caused pages opened when a project is opened to be in the JSP tab (since the NB project open facility uses the edit action by default). Checking in src/org/netbeans/modules/visualweb/project/jsfloader/JsfJspDataObject.java; /cvs/visualweb/project/jsfloader/src/org/netbeans/modules/visualweb/project/jsfloader/JsfJspDataObject.java,v <-- JsfJspDataObject.java new revision: 1.10; previous revision: 1.9 done
Since the underlying issue (58136) looks like it will not be fixed for NB 6, we should find a workaround since the edit action is broken again. The 'edit' action on the .jsp file node in the projects tab will not be fixed, but at least the 'view jsp source' action should do the correct thing. Since the ViewJspSource action is in insync, perhaps an additional Node.Cookie interface could be created specifically for this.
Assigning back to Quy as Insync action is doing the right thing.
*** This issue has been marked as a duplicate of 115596 ***