This week's book giveaway is in the Web Services forum.
We're giving away four copies of Microservices in Action and have Morgan Bruce & Paulo A. Pereira on-line!
See this thread for details.
Win a copy of Microservices in Action this week in the Web Services forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Beginning Facelets question  RSS feed

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to use RichFaces 3.3.3, for which I have a working sample in Eclipse (WTP), as a starting point to learn to use Facelets. However, I'm unable to find an appropriate Facelets JAR. I've tried a jsf-facelets-1.1.14.jar I found somewhere, but this gives me a zip file error when I restart Tomcat 6. Elsewhere, I found a jsf-facelets-1.1.15.B1.jar and, while the server launches cleanly, my .xhtml is rendered as totally blank.

The libraries I'm successfully using in my present sample app are
  • Apache commons
  • MyFaces 2.0.3
  • RichFaces 3.3.3
  • jstl.jar

  • I don't have to use RichFaces. In fact, I'm more accustomed to using MyFaces.

    I'm asking for some help constituting a JAR set with which to do my Facelet work. It would be nice to understand where to get the JAR(s) too.

    Thanks,
    Russ Bateman
     
    Ranch Hand
    Posts: 90
    Chrome Eclipse IDE Java
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi Russell

    Since JSF 2.0 Facelts comes bundled with jsf-api, so you don't need extra jar to use facelets, if you use a JSF 2.0 implementation as MyFaces 2.0 or Mojarra 2.0 you don't need extra configuration or extra jars to use Facetes, because it's the default View Descriptor Languages for JSF 2.0.

    Regards
    Cesar
     
    Russell Bateman
    Ranch Hand
    Posts: 69
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks, Cesar.

    It's devilishly hard to piece together some of this stuff from scratch. I find I learn more than if I simply abandon myself to somebody's framework (initially) like Seam. Alas, I finally resorted to using the Tomahawk examples as I could never find a combination of JARs that didn't crash and did work.
     
    Bartender
    Posts: 19996
    95
    Android Eclipse IDE Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I did this for a long time. In fact, only one of my current projects is JSF2; I haven't had time to convert the older ones.

    What I'm doing is using Maven, and I can project sample POM dependencies, but that won't be the full list of requires JARs.
     
    Don't get me started about those stupid light bulbs.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!