• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Primefaces taglib with JSF on Tomcat rendering empty pages

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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): http://java.dzone.com/articles/primefaces-quickstart-tutorial 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: http://www.primefaces.org/gettingStarted.html

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:

jsf-api-2.0.3.jar

jsf-impl-2.0.3.jar

jstl-1.0.2.jar

primefaces-3.3.RC1.jar

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?
 
Ranch Hand
Posts: 99
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic