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.
This bug blocks a demo intended for an important Netbeans presentation. The goal of the demo is to show that Netbeans can be extended to handle new types of environments, I am specifically trying to configure Netbeans to deal with Portlets development. As part of this, I want to create three new templates: one for a basic Portlet (a java file), one for the portlet tag library descriptor (a TLD file as far as the webapps module is concerned), XML), and one for the portlet configuration file (an XML file). I started by opening the options tab and going to the editor settings to the templates section. I then opened the JSP & Servlet menu and added a new folder (portlet stuff). From that folder I used New -> XML file, which I called portlet-xml. I cut and paste XML content from another file into this file in the text editor. Next I added a new text file, which I created with the prefix "tld". I cut and paste content from another file into this file. Using the "Save as template" action (which I finally discovered) I then added a Java file into the same folder and renamed it portlet in the folder. When I use the "New" menu, only the Java file shows up. I renamed them to see if there was a name issue (Config, TLD, Portlet) but it wasn't. The files don't show up after I start the IDE either, even though they are present according to the Options pane.
Just set properties attribute of newly created templates to true and they will show in wizard. Or you can copy/paste another templates and update their content without the need to set the attribute BTW: How it could be P1?
I filed this as a P1 because I performed an action for which the IDE has explicit UI (creating a new template from the list of templates on the options pane) which ended up with an unexpected result. You are correct that it's not a P1 because there is a workaround (that was not obvious to me, so it's fair to assume that it's not going to be obvious to all other users either). It's still a non-obvious UI and should at least be filed as an enhancement. Surely, if a user starts from the list of templates and creates a new files that appears in the list of templates, they don't expect to have to go and separately set a property that makes it appear in the menu?
wfm