I'm using Netbeans 7.3 with OpenJDK 1.7.0_21 64-Bit Server VM 23.7-b01 on Linux 3.8.8-1-ARCH.
On every Facelet I have
<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"
xmlns:f="http://java.sun.com/jsf/core">
Netbeans reports xmlns:p
as "no library found for namespace" and all <p:xxx>
tags are also not recognized in intellisense.
I'm managing dependencies using Maven. I have the following in my pom:
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
</repository>
and
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.5</version>
</dependency>
However, when I deploy to a Tomcat server, then everything works fine; PrimeFaces components work as expected.
It was a bug in the version of Netbeans I was using. The namespaces got renamed and the support wasn't in yet.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.