HELP ME TO USE primefaces-3.0.jar WITH JSF 2.0

UI Components for JSF
Post Reply
elshad.dani
Posts: 10
Joined: 05 Jan 2012, 11:45

05 Jan 2012, 11:52

Hai ,

I have a sample working jsf 2.0 project.
When i add primefaces-3.0.jar in the lib folder.
I get the following error while deploying.Without that jar the project works fine.
org.primefaces.renderkit.HeadRenderer' is not an instance of 'class javax.faces.render.Renderer
I wish to use primeface but could not add it to my project.
Last edited by elshad.dani on 05 Jan 2012, 12:17, edited 1 time in total.

elshad.dani
Posts: 10
Joined: 05 Jan 2012, 11:45

05 Jan 2012, 12:16

elshad.dani wrote:Hai ,

I have a sample working jsf 2.0 project.
When i add primefaces-3.0.jar in the lib folder.
I get the following error while deploying.Without that jar the project works fine.
org.primefaces.renderkit.HeadRenderer' is not an instance of 'class javax.faces.render.Renderer
I wish to use primeface but could not add it to my project.

I Removed the primefaces-3.0.jar and tried primefaces-2.2.1.jar
i got the following error.

"org.primefaces.application.DynamicContentStreamer' is not an instance of 'interface javax.faces.event.PhaseListener"

elshad.dani
Posts: 10
Joined: 05 Jan 2012, 11:45

05 Jan 2012, 12:43

Hai Friends,

I managed to solve this error

just specify the WAR_BUNDLES_JSF context param in your web.xml file like this:

<context-param>
<param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
<param-value>true</param-value>
</context-param>

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

05 Jan 2012, 17:30

what version of the JBoss appserver are you using?

elshad.dani
Posts: 10
Joined: 05 Jan 2012, 11:45

06 Jan 2012, 07:08

kukeltje wrote:what version of the JBoss appserver are you using?
I am using jboss 5.

It seems the jsf implementation comes inbuilt with jboss 5.
That's the reason i got this error.
adding those lines in the web.xml.Solved the problem

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 32 guests