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.
I fixed this in web/project (see #45539) so it is now inconsistent. (in web/prj I also made the selection sensitive to j2ee version which is not needed here)
Behavior is consistent in Web and J2SE.