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.
Product Version = NetBeans IDE Dev (Build 201506130001) Operating System = Windows 8 version 6.2 running on amd64 Java; VM; Vendor = 1.8.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02 given a method public List<Review> getRecentReviews() {...} which is used on a web page <ui:repeat value="#{reviewListController.recentReviews}" var="review">... Now, invoking "find usages" on the getRecentReviews method would not find the invocation from the web page And, btw. renaming the method would not rename the JSF tag anymore, which had been a great NB feature. Because there is this second problem, I increased priority to P2
Created attachment 154210 [details] IDE log
This works for me in both ant and maven projects in the latest dev build with GF as a server. Can you share a sample project for testing?
Reopened. I verified the problem and it seems only to occur under certain circumstances. It seems to work fine, if the variable is placed onto a client page, but fails if the variable is placed onto a template page. I'm going to construct a demo next week(end). Since the problem does not always occur, I decreased priority to 3.
I tried to create a sample project, but could not reproduce this bug. Then, I checked my existing app, and verified that find usage did not find nothing. I moved the usage from a nested structure into a flat one. Then find usage worked perfectly. Next I moved the call back to the nested structure. Find usage still works. This seems to be a bit mysterious. But I faced this problem a couple of time. Thus, I don't think we can close the bug. But it seems hard to reproduce as well hard to find. :(
It seems the problem occurs after a rename of a property. Please refer to #202571
I got it reproducible: Page: <ui:repeat value="#{controller.names}" var="name"> <p> #{name} </p> </ui:repeat> Java: public List<String> getNames(){ return new ArrayList<>(); } Try Alt-F7 on getNames() finds the usage within the page. Next, rename this method. Alt-F7 would not find the usage anymore nor would it be renamed if you rename the method again. Then, after I changed and saved the page manually, Alt-F7 was ok again (till the next rename).
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss