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)Start NetBeans with clear user dir(So you will have premounted <sampledir>/examples 2)Mount some web module, select WEB-INF/classes, press Ctrl+N 3)Select JSP&Servlets->Servlet and press "Next" button 4)Select WEB-INF/classes in "Target Location" tree 5)In "Folder" textfield type "exams" and notice, that <sampledir>/examples is selected in "Target Location" tree 6)Select WEB-INF/classes again and notice, that "Folder" textfiled is clear. So there is no way to create package in such situations(Only via File->New->Java Package). Such situations are often, because only partial match required. (Reproduced also on other Java templates) I think, that "Folder" textfield should not be cleared at step 6. Well reproduced with 200303030100 NetBeans dev build.
I think it's not a bug. The name of folder is constructed with <parent_folder>/<folder>/.... You can type WEB-INF/classes/exams and invoke Create. It works for me.
It is just workaround and nothing more. Why I should type full path instead of new folder name ? And this workaround do not work if you have 2 web modules. The WEB-INF of first web module is always preferred. Reopened.
No, it's not workaround it's as designed. The field "Folder" describes the whole name of folder from the filesystem's root to last component of folder, e.g. examples/texteditor/aaa/bbb/ccc... It's seen when selecting folders in tree. It you think it's a bad design then file enhancement/defect against core/property editors (because DataFolderEditor is used in Template chooser panel). Sure attach UI keyword to this issue.
Well. 1)<wm>:WEB-INF/classes is the filesystem's root in case of web modules. Reopened.
Aha, I see where a problem is. Thanks for explanations. I'll try solve it ASAP the best in nb3.5 if the time allows :)
fixed in main trunk. I would like to see it fixed in release35 if the rules allow. It's only hotfix which allows create a subfolder direct under root, if a name of folder is already used by another folder. In general. there is a badly design of DataFolderEditor, the completely synchronization of folder's textfield and tree makes impossible creating new folders if its name is already used. I'm going to file a task for ui spec of this editor, it should be newly implement in next release.
I agree with you Jirka, please fix it in release35 branch.
Need to be fixed in release35 -> P1
fixed in release35 branch
verified in [nb3.5](200304012350)