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.
Nodes 'Web Services' and 'Web Service References' should be displayed only if they contain subnodes. Now project contains too many subnodes (e.g. 9 for me) and it's confusing.
I don't think we should remove the nodes. They actually advertise the functionality, and I don't find them confusing. Leave to UI to decide.
Having nodes appear/disappear is pretty confusing. It is similar to having menu items that change state. People loose track of "why" something enables, then become frustrated when they cannot get an item to activate. That said, the current Nodes have some serious issues. 1. There is no menu item to create a web service on the "Web Services" node. Since you CAN create a WS from the project's New item in the CSM, it would be nice to have a "limited New" on the node, that just allows you to create a Web Service. 2. The "Web Service References" node doesn't appear initially when a web or ejb project is created. They appear once the user creates one from the project's New menu (I guess). So we are mixing the two strategies. That is even nmore confusing.
Because there isn't New menu item on Web Services node so user can't use this node to create new file I thouht this node was "useless" when there was no web service. Having New menu item on this node would be great.
Personally, I'd prefer that the nodes not be present unless there are services (or clients) respectively. But HIE has consistently ruled against this and in fact, there is a bug filed against the web service reference node because it does in fact only show up if you have clients in the project. As for providing access to <New> from the web service node, this can be done easily (1 line?) (I think the web service reference node offers this - at least it did last fall). But we are way past UI freeze so I think that will not happen for 4.1 w/o escalating and I don't think this is worth the energy (I agree it should be there though.)
I tend to say that the web service parent nodes should be always shown. Consider this: if the user removes the last web service, should the parent node disappear? The new menu should be available on this node and it should contain all the new items defined for project. We had a discussion before 4.0 whether to hide/show new items the user can/cannot create in a certain container and we agreed that we will do it only at the project level. So, all New menus in the project show the same list of recently used new items.
The presence of container nodes has been discussed widely in this issue, as well as in #52926 and #53007. There is also related issue regarding the context menus of these nodes (now filled as #56662) Related issue: 56662 Context menu on the project explorer out of UI spec http://www.netbeans.org/issues/show_bug.cgi?id=56662 Duplicate issues: 52926 Confusing UI around Sun Resources templates http://www.netbeans.org/issues/show_bug.cgi?id=52926 53007 Different project view for webapps with/without webservices http://www.netbeans.org/issues/show_bug.cgi?id=53007 The conclusion is that: - all container nodes should be always shown - the "New File" context menus should contain a project-wide set of items + history - a discussion about the contextuality of the "New File" context menu will be restarted for promo f The context menus are solved in #56662, the presence of nodes is solved in this issue. So, what needs to be repaired (in this issue): 1. Web Service Clients node does not appear by default (but it should) Note: It was renamed from Web Service References - see current UI spec: http://web.netbeans.org/nonav/doc/webapp-project-ui-spec-promoe.html#Project_Window 2. Server Resources node does not appear by default in both Web Application project as well as in EJB Module project (but it should) Assigning to Andrei (to fix the EJB module). Andrei, please reassign the responsible person (regarding the Web Application) if necessary. Hopefully I've added them all (Radko) on the CC.
*** Issue 53007 has been marked as a duplicate of this issue. ***
*** Issue 52926 has been marked as a duplicate of this issue. ***
The Server Resources node has been fixed, the commit log is in issue #56662.
Peter: to summarize: UI says the Web Service Clients node should be always visible in the web project. I think you are the proper person to ask, could you look at it? Or close if you feel this can't be done for 4.1.
Reassigning to websvc since I am not working in this area anymore.
*** Issue 69431 has been marked as a duplicate of this issue. ***
this is already solved, AFAICT