NicolaIsotta commented on PR #9350:
URL: https://github.com/apache/netbeans/pull/9350#issuecomment-4283978132
I discovered the issue because the web.beans module is called from the EL
module for code completion, eg. in jsf pages.
Suppose you have a bean is defined like this (the first 2 chars must be
uppercase):
```java
@Named
@RequestScoped
public class JBean {
private String value = "value";
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
```
In the xhtml, Netbeans will suggest this:
<img width="1575" height="120" alt="image"
src="https://github.com/user-attachments/assets/635b7895-6287-4662-af79-7e3eaa9b231c"
/>
While it's actually available as `#{jBean}`, can be simply verified by
putting this in the xhtml:
```xhtml
\#{JBean.value}= #{JBean.value}<br/>
\#{jBean.value}= #{jBean.value}
```
The output is this:
<img width="424" height="120" alt="image"
src="https://github.com/user-attachments/assets/ef585445-04a4-4e79-b9ac-1f34b66638c6"
/>
I do have a runnable jetty project if needed.
--
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