howardfun opened a new issue, #4035:
URL: https://github.com/apache/netbeans/issues/4035

   ### Apache NetBeans version
   
   Apache NetBeans 13
   
   ### What happened
   
   CDI bean is supposed to be found in the xhtml file after typing the "#{}" 
keyword. Also, when ctrl + click on class/ method name of CDI statement in 
xhtml, the "go to declaration" function is not working in the Netbeans IDE.
   
   *Found that the bug can be fixed when turning it back to Jakarta EE 8.0.0 
version instead of 9.1.0. Second, change the "jakarta.xxxx" back to 
"javax.xxxx" for a temporary fixing.
   
   ### How to reproduce
   
   Please use the example here to reproduce 
   https://github.com/juneau001/jakarta_cdi_reservations
   
   Open the part 2 project, open the "reservations.xhtml" file in Apache 
Netbean 13 (in fact, it is also happen in version 12).
   
   <p:inputText id="firstName" 
value="#{reservationController.currentReservation.firstName}"/>
   
   When you ctrl + click on the  "currentReservation" or "firstName", Netbeans 
not able to "go to declaration".
   
   Besides, when type the "#{}" the CDI bean is not even found in the list as 
captured below:
   
   
![image](https://user-images.githubusercontent.com/53899971/165225760-f18f1590-ba9d-41c8-8528-653a4e6645d6.png)
   
   I believe a similar error is like the following:
   https://bz.apache.org/netbeans/show_bug.cgi?id=178687
   
   Lastly, the workaround is to change the Jakarta EE version from 9.1.0 back 
to 8.0.0 and change the "jakarta.xxxx" to "javax.xxxx" for all java files. This 
works but defeats the purpose, please take note.
   
   I hope this bug can be solved very soon as this already spent me a long time 
to try and error.  Thank you in advance!
   
   
   ### Did this work correctly in an earlier version?
   
   No
   
   ### Operating System
   
   Windows 10 home edition
   
   ### JDK
   
   OpenJDK 11
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to