Home > Software engineering >  IntelliJ can not recognize CDI @Named beans in EL expressions in JSF pages
IntelliJ can not recognize CDI @Named beans in EL expressions in JSF pages

Time:11-28

I have a problem that lasts days of research on the internet but without result I have a JEE project that runs normally, I use the JSF framework. My xhtml files recognize @Named beans and when I click on the bean name in the xhtml page, the intellij editor navigates to the bean class.

when I updated the dependencies in my pom.xml file, the bean names in my xhtml pages don't recognize managedBeans annotated @named and the IntelliJ environment doesn't allow to reach the managedBean by clicking Ctrl mouse on the managedBean name

enter image description here yet it still works in the old project where the dependencies are not updated
enter image description here

I tried to undo the dependency updates and put them back as they were before, but it doesn't always work

CodePudding user response:

I've been through the same problem before. I found that one of the dependency is doing this problem . I started experimenting with each dependency one at a time.

I don't know why exactly this dependency ,AnD I don't know how it works, but give it a try

delete this dependency from yours pom.xml

 <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-client</artifactId>
            <version>1.19.4</version>
        </dependency>
  • Related