PrimeFaces Components Not Displaying

I tried to set up the PrimeFaces library. So I added perffaces-3.4.1.jar using the "add external jar" command. Then I added the namespace: xmlns: p = "http://primefaces.org/ui to the html tag. According to the official documentation , that’s all it takes to configure it.

I tried adding the <p:editor/> component to my page, but it does not appear.

My project configuration: Eclipse, JSF 2.1 on Glassfish 3.1

Did I miss something?

+4
source share
2 answers

I assume this is the same problem and solution: Simple grants application does not work

missing servlet mapping in web.xml:

 <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> 
+3
source

Apparently, you incorrectly executed the "add external jar" command. It is not clear from the question exactly how you performed this step, but it should simply be dropping the entire JAR file in the project folder /WEB-INF/lib usual way (as for every third-party JAR file, it depends on webapp). The way you pose the question indicates that you did not know about it at all.

Actually nothing more needs to be done. If you made your way in the properties of the Build Path project, then you should cancel this to avoid possible collisions in the future. Eclipse is smart enough to automatically install the necessary things when you drop the JAR into the /WEB-INF/lib project folder.

+2
source

Source: https://habr.com/ru/post/1443091/


All Articles