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.
Wicket (http://wicket.sourceforge.net/) requires one to be able to create HTML files in the same directory as JSP files. Currently the wizard has a field "location" that specifies where to create the file but it defaults to "Web pages" even if the wizard is triggered by right-clicking on a Java package. Expected behavior: default to create HTML file within the package I right-clicked on.
Jirko, do you think this is too restrictive? Is it a usability bug? I think the only workaround is to create the file in web folder and then move it -- ugly! Fix should be relatively simple. Not sure about docs impact, etc.
I think we should not be restrictive; creating a file in "any" folder is a valid use case. Morover the context should work. The issue is very interesting! Did you know, that we have two different wizards for an HTML page? I didn't! ;-) One in "Web" category (HTML), the other in the "Other" (HTML File). I realized that it's quite a mess, we should merge the functionality of these two into one. Here is a summary of their current behaviour: 1. Other / HTML wizard Contains Folder text field and browse button allowing the user to choose a folder within the project folder. If there are more then one source folders the Location combobox appears. It includes the project folder and "external" folders. The user can than use the browse button to select a Folder within the Location. 2. Web / HTML wizard There is also the pair Location / Folder, but: - they are always present - the Location combobox contains only one item "Web Pages". Here is my proposal: 1. Merge the wizards into one that will be located in the Web category. 2. Use the layout of the Web / HTML. 3. Name the wizard "HTML File". 4. The Location combobox, should contain - the project folder - any other "mounted" source folders - "Web Pages" folder 5. If the user activates the wizard on a source folder (or a subfolder/package), it will be reflected in the Location and Folder fields. Otherwise the Location will default to "Web Pages" folder. Comments?
Actually, you can create HTML anywhere (even in java package) by using New -> File/Folder -> Other -> HTML File wizard. The Summary of the bug is not much appropriate. I am changing the Summary then. The suggestion made by Jirka Kopsa looks reasonable.
Sorry, I'll take it back to me.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss