开发者

Primefaces 3.0.M3 namespace url doesn't work

I read that the new namespace fo开发者_Python百科r Primefaces 3.0.M3 is xmlns:p="http://primefaces.org/ui" but doesn't work. Netbeans throws No library found for this namespace error. If I go back to the old namespace, the new components aren't rendered. What am I doing wrong?


The taglib uri was changed from http://primefaces.prime.com.tr/ui to http://primefaces.org/ui some time after the M3 release, between 3.0.RC1-SNAPSHOT and 3.0.M4-SNAPSHOT. The latest released version seems to be M3 and is still using the old namespace. I would suggest to use the snapshot versions until the next milestone or final version is released, in order to already work with the new namespace and avoid changes at a later stage.

In my opinion the snapshots are mostly stable. They are available in the primefaces maven repo, maybe you have to configure the repository entry in your pom to allow snapshot versions.


3.0.M3 and before = http://primefaces.prime.com.tr/ui

3.0.M4(not released yet, applies to snapshots now) and future = http://primefaces.org./ui


You have to delete from web.xml the Resource Servlet:

  <servlet>
    <servlet-name>Resource Servlet</servlet-name>
    <servlet-class>org.primefaces.resource.ResourceServlet</servlet-class>
  </servlet>

and

  <servlet-mapping>
    <servlet-name>Resource Servlet</servlet-name>
    <url-pattern>/primefaces_resource/*</url-pattern>
  </servlet-mapping>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜