Netbeans not found any libraries for this namespace

I searched around, but I can’t pinpoint the final solution. I use netbeans + Maven and try to switch from Primefaces 2.2.1 to 3.0.M3 - when I change index.xhtml taglib to xmlns: p = "http://primefaces.org/ui" netbeans throws' no libraries found for this error namespaces.

Index.xhtml file:

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" > <f:view contentType="text/html"> <h:head> </h:head> <h:body> <h:form> <h:commandButton value="Run Test" action="selecttype" /> <h:commandButton value="Manage Methods" action="addmethod" /> <h:commandButton value="Manage Data" action="managedata" /> <p:tagCloud model="#{tagCloudBean.model}" /> </h:form> </h:body> </f:view> </html> 

So, the new line taglib and p: tagCloud is what netbeans says they don't work - when I run the program, I see three buttons above the message "Warning: This page requires the XML namespace http://primefaces.org/ ui with the p prefix, but taglibrary does not exist for this namespace. "

For Maven, I updated these parts of pom.xml:

 <dependency> <groupId>org.primefaces</groupId> <artifactId>primefaces</artifactId> <version>3.0.M3</version> </dependency> <repositories> <repository> <id>java.net.m2</id> <name>java.net m2 repo</name> <url>http://download.java.net/maven/2</url> </repository> <repository> <id>prime-repo</id> <name>PrimeFaces Maven Repository</name> <url>http://repository.primefaces.org</url> <layout>default</layout> </repository> </repositories> 

and commented on the old repo information of the first repo.

I have primaryfaces-3.0.M3.jar as a local dependency. This seems to be normal, since all java class files using the library reference it in order. The primefaces-3.0.M3.jar binary file is also located in my WEB-INF / lin folder. I saw a lot of people having weird problems with netbeans and not sure if I just missed something or if its an IDE. Any ideas would be greatly appreciated.

+4
source share
3 answers

Incorrect for xmlns component. Try changing the URL to http://primefaces.prime.com.tr/ui in accordance with the Basic Interfaces Getting Started Guide .

UPDATE 08-08-2013:

From now on, the correct namespace is listed in the following link:

 xmlns:p="http://primefaces.org/ui" 
+1
source

Actually, if you are using Primefaces 3.0 M4, then xmlns has changed to:

 xmlns:p="http://primefaces.org/ui" 
+4
source

in case anyone else is looking for an answer for this,

just right-click the EE project β†’ select project properties β†’ Frameworks β†’ components and select price lists.

works on Netbeans 8.1

+1
source

All Articles