Reputation: 61
I'm trying to start with Primefaces 2.2.1, but I can't. I have the following definition in pom.xml:
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2.1</version>
</dependency>
But I recevie the following error message:
Warning: This page calls for XML namespace http://primefaces.prime.com.tr/ui declared with prefix p but no taglibrary exists for that namespace.
with this simple code:
<?xml version='1.0' encoding='UTF-8' ?>
<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.prime.com.tr/ui">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
Hello from Facelets
<p:editor />
</h:body>
</html>
Upvotes: 5
Views: 25324
Reputation: 10463
Their servers must be down right now because I cannot navigate to their forums either.
They are located in Turkey, I believe so they usually go down for nightly maintenance about this time.
Upvotes: 0
Reputation: 11
For me, this was the solution, change the old tag and instead use the following:
xmlns:p="http://primefaces.org/ui"
Upvotes: 0
Reputation: 23443
If you have been using Eclipse's Export WAR function, you need to explicitly add the dependency into the WAR assembly.
Your answer is here: Eclipse exporting JAR in WAR
Upvotes: 0
Reputation: 1424
Include the tag lib as :
xmlns:p="http://primefaces.org/ui"
And the dependency in pom.xml as :
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.0.M4</version>
</dependency>
I was also facing the same issue. This solution fixed my problem.
Upvotes: 4
Reputation: 1125
You should have the <repository>
between <repositories>
:
Try this:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.test</groupId>
<artifactId>jsf_primefaces</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>jsf_primefaces</name>
<description>JSF PrimeFaces</description>
<packaging>war</packaging>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2.1</version>
</dependency>
......other dependencies.........
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>el-api</artifactId>
<version>2.2</version>
</dependency>
......other dependencies.........
</dependencies>
</project>
Upvotes: 1