Trying to get "Primefaces Showcase autocomplete" running I'm facing a problem that "CountryService.java" won't load. I copied it from (https://www.primefaces.org/showcase/ui/input/autoComplete.xhtml?jfwid=52f7c). It looks like it's caused by the "@Inject private CountryService countryService;" not functioning.
In autoCompleteView.java I added a printline to the method completeText:
public List completeText(String query) { System.out.println(thisClassName + ": completeText (1) - " + query + " / " + countryService);}
When running it shows this: "AutoCompleteView: completeText (1) - ned / null", meaning 'countryService' has not been initialized. Could it be an CDI issue? I'm using 'tomee-8.0.6-webprofile' that according to documentation should support CDI! Or must I install CDI2.0 seperately into my java library lists?
I tried the @BalusC solution of: How to inject FacesContext with JSF 2.3 and TomEE?
Maybe something is missing in my installation? :
Eclipse 18-12;
Apache Tomcat (TomEE)/9.0.41 (8.0.6);
JSF2.3;
myfaces2.3;
Primefaces 8.0;
Could anyone help me please? I would appreciate that very much!