JSF Richfaces 4.5 cannot find JQuery.js resource

I have a "unable to find resource JQuery.js"

glassfish 4.1 project but keeps coming up with a previous version of Richfaces and glassfish that worked 100%. Now it breaks my menus, etc. And causes an annoying error popup message.

<h:outputScript name="jquery.js"/>

      

or

<h:outputScript name="jquery.js" target="head"/>

      

doesn't work anymore, any suggestions?

Also make sure the kernel is enabled. POM:

<dependencies>
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces</artifactId>
            <version>4.5.0.CR1</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.richfaces</groupId>
            <artifactId>richfaces-core</artifactId>
            <version>4.5.0.CR1</version>
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

      

Dependencies including:

sac-1.3
cssparser-0.9.14
guava-18.0
richfaces-4.5.0.CR1
richfaces-core-4.5.0.CR1
richfaces-a4j-4.5.0.CR1

      

Is there something missing?

Thank.

+3


source to share


1 answer


Using

<h:outputScript library="org.richfaces" name="jquery.js"/>

      



What are you using it for? JQuery is automatically included in RichFaces.

+9


source







All Articles