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.
Steps to reproduce: 1) Create a Visual Web Project 2) Then create a new Visual Web JSF page on the Web Pages folder 3) Right click the newly created Visual Web JSF page node from the project explorer and select Refactor from the menu and it will display the Refactor options available to the selected node in a sub menu The sub menus should only enable "Rename..." and "Move..." action for the jsp node selected in the project explorer but here it has also enabled the following sub menus which are irrelevant - Introduce Variable Introduce Constant Introduce Method Introduce Field How can we Introduce Method to a jsp file ? These submenu actions should be disabled. Dev Build 200808170243 JDK 6 Update 10 Glassfish V2 Server
Created attachment 67691 [details] 144249 Screen Shot
Visual web refactoring is handled by insync.
The refactoring actions for the jsf jsp dataobject are declared in visualweb.jsf.project module. Instead of that action (all for java), there probably should be only refactoring rename and refactoring move action. Passing to the owner.
As I described before, this is handled by insync! The jsfloader module only decides which 'main menu items' to display; i.e., 'Set As Start Page', 'Open', 'Refactor', ... and then the refactoring implementation (i.e., insync) handles the behaviors of the 'sub menu items' under the 'Refactor'.
The refactoring API offers to use either Refactoring all action... or explicitelly Refactoring rename or Refactoring move actions, those can be specified via layers only. Insync can't infuence the content of refactoring all action.
It's from jsfloader.
Minor issue that we will handle post 6.5.