File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Richface/Primefaces Elements are not rendered Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Richface/Primefaces Elements are not rendered" Watch "Richface/Primefaces Elements are not rendered" New topic

Richface/Primefaces Elements are not rendered

manuel breul

Joined: Dec 21, 2011
Posts: 2

I have a problem using component libraries like Richfaces and Primefaces in my JSF project.

I'm using:
- Mojarra 2.1.4
- Richface 4.1.0 final
- Primefaces 3.0 RC2
- Tomcat 6

I want to compare the selectOneMenu from different libraries but the only one that is renderd is the one from JSF itself.

Here is my xhtml code:

and this is the result html:

The components from Primefaces and Richfaces are not rendered.
I included Richfaces and Primefaces in the exact way like it is described in each installation guides.

It would be great if anyone could give me an advice what the reason for this could be.

Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

The h:selectOneMenu is been rendered?

Try add the <f:view contentType="text/html"> after your <h:body>.

PS: remember to close it! :P

[] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
manuel breul

Joined: Dec 21, 2011
Posts: 2
Yes, the h:selectOneMenu is rendered.

I added a surronding f:view element for the content of h:body but it didn't have any influence.

Scott Paffrath

Joined: Aug 27, 2010
Posts: 4
Are you sure the libraries are declared right? I think Primefaces changed to

I know Netbeans would give an error but I'm not sure which IDE you're on.
I agree. Here's the link:
subject: Richface/Primefaces Elements are not rendered
It's not a secret anymore!