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.
In an .xhtml file, there should be a shortcut to fix imports for several pre-defined namespace prefixes such as f and h.
*** Bug 235551 has been marked as a duplicate of this bug. ***
Most of this implemented in: web-main #e47c5a5d983f web-main #06c675cac3f8 web-main #1e19beb61747 web-main #906366fc63ef web-main #cea7e9459276 web-main #a59955f98773 web-main #a89df4f09e92 web-main #f30c7e0c432a It's not fully finished and I'll work more on that but the basic functionality is already pushed into the trunk. Marking as fixed - remaining TODOs I have noticed.
BTW, the shortcut set to this action is CTRL+SHIFT+I and the action works as a Fix Imports global or Fix Namespaces popup action.
I briefly try it and it seems to work quite well. I have one observation (but perhaps it is in your todo list). When I have a custom (non-standard) prefix for namespace, like <test:choose> </test:choose> and select jstl/core ns to be imported, would it make sense to import it with prefix "test" instead of "c"? xmlns:test="http://xmlns.jcp.org/jsp/jstl/core"
You are definitely right, could you enter an issue against it to have it tracked? Thanks a lot.
Reported as issue 238155