This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSF and the fly likes Primefaces taglib with JSF on Tomcat rendering empty pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSF
Bookmark "Primefaces taglib with JSF on Tomcat rendering empty pages" Watch "Primefaces taglib with JSF on Tomcat rendering empty pages" New topic

Primefaces taglib with JSF on Tomcat rendering empty pages

Natalia Zon

Joined: May 27, 2012
Posts: 1
Lately I found out about this great taglib, Primefaces. It's absolutely perfect for what I need to do, but I'm being stuck on trying to make it do anything, even render the examples from their website.

So I've been following this tutorial I found (sadly, there aren't many of them on the subject of Primefaces): Step by step, I made everything according to this tutorial, yet when I run it, it renders an empty page every time.

So I tried a simpler example from the official website:

This (test.xhtml):

renders an empty page, while this:

renders only the "test test test test" text.

So I guess the problem must be in the tags, tomcat doesn't see them/doesn't know how to interprete them. But, according to the tutorial and the primefaces website all I need to do is to put the jars in WEB-INF/lib as I have done (by the way, I'm using Eclipse and the empty project I created was "Dynamic Web Project"). In my WEB-INF/lib I have the following jars:





If it's of any help, here's the content of the tomcat console:

What can be the case? Am I putting the jars in wrong place, is it a tomcat failure or maybe something else entirely?
Varshini Priya
Ranch Hand

Joined: Feb 17, 2008
Posts: 94

Hi Natalia,

Your code seems to be fine. But I guess you have not configured the Faces servlet in the web.xml file. The tomcat console logs that you have specified does not seem to implement JSF jar. I suggest you configure the facesServlet and servlet mapping(url pattern) in the web.xml to get your code working

Hope this helps.
Have you checked out Aspose?
subject: Primefaces taglib with JSF on Tomcat rendering empty pages
jQuery in Action, 3rd edition