gokhansari
gokhansari

Reputation: 2439

Primefaces taglib error on JSF

I tried to implement PrimeFaces to my project. I download primefaces-3.0.M2.jar and added to build path then I added this taglib to my code:

<%@ taglib uri="http://primefaces.prime.com.tr/ui" prefix="p"%> 

I got this error:

Can not find the tag library descriptor for "http://primefaces.prime.com.tr/ui"

Is there anyone to help me out?

Upvotes: 3

Views: 7709

Answers (3)

bugiman
bugiman

Reputation: 21

Hi there? Add the necessary libraries to your project and add the following to your the html tag in your view

xmlns:p="http://primefaces.org/ui"

you can now use the p prefix to reference primefaces! :) hope it'll help!

Upvotes: 0

Cagatay Civici
Cagatay Civici

Reputation: 6504

PrimeFaces 2.2+ does not support JSP view.

Upvotes: 5

egbokul
egbokul

Reputation: 3974

Does Primefaces support JSP-style syntax anymore?

You should use Facelets and the standard syntax for declaring taglibs:

<html xmlns="http://www.w3c.org/1999/xhtml"
 xmlns:h="http://java.sun.com/jsf/html"
 xmlns:p="http://primefaces.prime.com.tr/ui">
...

Remember, JSF is not JSP!

Upvotes: 2

Related Questions