I'm using NetBeans 12.5 with a new Gradle 7 web project and am having
issues with code completion working within JSF EL (Jakarta JSF 3.0). I
could definitely use some assistance figuring this out.
Steps Taken:
1. Created new Gradle Web project (declared dependency for jakarta ee
9.1 api)
2. Created a CDI Bean (using @Named and @SessionScoped annotations),
"SampleBean" with a sample method, "(get|set)SampleString," returning a
String.
3. Defined the JSF servlet within web.xml
4. Edit the JSF page (.xhtml) and added a JSF EL reference to my Sample
Bean, #{sampleBean.sampleString}
The project built and packaged as a WAR successfully and deployed and
executed in GlassFish 6.2.2 as expected.
However, when I use code completion (Ctl-Space) within the JSF EL I do
not see my CDI bean as an option to select nor does code completion work
to show me the methods of the CDI bean after I type the bean name. Code
completion works on all tags, even when using a framework such as
PrimeFaces, just not with my custom CDI beans within JSF EL.
I have tried a work-around mentioned for a JSP issue by editing my
Gradle build script to include the webapp source in the java sourceSet,
but this does not resolve the issue.
Thank you,
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists