No TagLibrary associated with the PrimeFaces namespace
I found a similar question here , but it doesn't help me anymore. However, I faced the same problem. I get the following error when launching my application:
Warning. The page /template/common.xhtml declares the namespace http://primefaces.org/ui and uses the p: panel tag, but there is no TagLibrary associated with the namespace.
Below is a snippet of my index.xhtml:
<ui:composition template="/template/common.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <ui:define name="profile">
And this is how my common.xhtml file looks like (not putting all the content, just namespaces and 1-2 lines):
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Welcome to my website</title> <h:outputStylesheet library="css" name="default.css" /> </h:head> <h:body> <div id="header" style="margin: auto; width: 80%;"> <p:panel>
As described by BalusC here , you need to define xmlns = "http://www.w3.org/1999/xhtml". I'm doing the same thing. that is, the second line of the index.xhtml file does the same. but still i am getting error.
source to share
PrimeFaces 3.x JAR file is missing in your webapp folder. Download and leave it there. Or, if you are using PrimeFaces 2.x, you should use the following XML namespace instead:
This other question is not about tags
, but simple HTML tags like
etc. It's just a coincidence that in the case of this other question
is put inside a