How to add richfaces to maven project

后端 未结 1 334
粉色の甜心
粉色の甜心 2021-01-25 06:51

I\'m trying to use popup component in my app. I use JSF, Glassfish. Here\'s my pom.xml:



        
相关标签:
1条回答
  • 2021-01-25 07:33

    First of all, your problem is that you're not adding the dependencies at all.You only have the BOM added, but you need to add the other dependencies as the tutorial of using Richfaces with Maven says. Adding the BOM you're only declaring which version of the library you want to use, but not attaching the dependencies themselves.

    <dependency>
        <groupId>org.richfaces.ui</groupId>
        <artifactId>richfaces-components-ui</artifactId>
    </dependency>
    <dependency>
        <groupId>org.richfaces.core</groupId>
        <artifactId>richfaces-core-impl</artifactId>
    </dependency>
    

    Later on, you only need to specify the Faces Servlet in the web.xml file to have RichFaces working. Take a look to this entry too.

    0 讨论(0)
提交回复
热议问题