Had to use p:resources with PrimeFaces 2.0 and JSF 2.0

UI Components for JSF
Post Reply
Lisa
Posts: 1
Joined: 24 Nov 2010, 15:41

25 Nov 2010, 20:08

We are using PrimeFaces 2.0 and JSF 2.0. I tried to use the <p:dataTable with the selection attribute, selectionMode="single", and rowSelectListener. Using firebug, I could see that the appropriate css and javascripts were not being loaded and therefore, when I ran my application, I was not able to select rows in my datatable.

After putting the p:resource in my css after the <h:head> as in:
<p:resources></p:resources>

the datatable worked (ie. i finally got my css and js loaded). However, now I'm getting this informational message and I noticed in another article that the p:resources are not required with JSF 2.0.

INFO: p:resources component is deprecated and has no use in PrimeFaces 2.0 as JSF 2.0 resource apis are used instead to place resources on page.

Has anyone else encountered this problem? To me, the p:resources is required, unless I'm missing something.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

29 Nov 2010, 16:35

If you are using the latest version of PrimeFaces (2.2) the p:resources tag should not be used.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot], Karcirway and 9 guests