Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 19451
    88
    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.
     
    A feeble attempt to tell you about our stuff that makes us money
    Rocket Oven Kickstarter - from the trailboss
    https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!