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.
Rename context menu option should be disabled on certain files such as faces-config.xml, MANIFEST.MF... from Projects & Files View ? for example : When faces-config.xml is renamed whole project will go mad
The noides in project logical view provides these actions.
The mentioned actions are not provided by the project's logical view. It is a responsibility of each module which implements DataNode for a given file to override canRename() method. In my opinion it is more P4 than P2 but decreasing to P3 and reassigning to the responsible developer to decide. Our users never reported this problem and I would say they never will. Each web developer knows for what are these files good and that they should not be renamed and a smart developer will never do it. I can imagine a situation when the user wants to rename one of these files - rename the existing file to use it as a backup file and then create a new file with different entries e.g. for testing purposes. Reassigning to jsf subcomponent for faces-config.xml. It should be investigated also for Struts config files.
Obsolete milestone, please reevaluate
Don't see this as a big priority. I can imagine an user renaming e.g. faces-config.xml to faces-config.bak.xml and copying a new faces-config.xml in WEB-INF to replace the old one.
Additionally, nothing mandates that a JSF configuration file has to be named "faces-config.xml". You can define the configuration files(s) in web.xml using the javax.faces.CONFIG_FILES init parameter. Please see section 10.4.2 in the JSF specification for more info. I think this issue is invalid - perhaps we could even have some support for renaming a JSF config file, but that doesn't seem like a high priority feature.
moving opened issues from TM <= 6.1 to TM=Dev
> nothing mandates that a JSF configuration file has to be named "faces-config.xml" Yes, this is true that a JSF project should/can always use "faces-config.xml". I.e., the IDE should not force users to use it. It should be an option for the users.