开发者

Primefaces taglib error on JSF

I tried to implement Pri开发者_运维问答meFaces 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?


PrimeFaces 2.2+ does not support JSP view.


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!


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜