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.
[maven]
tag. I don't do Maven, but I guess that you just need to tell it to download the sources as well instead of only the classes. – BalusC