This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Beginning Facelets question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Beginning Facelets question" Watch "Beginning Facelets question" New topic
Author

Beginning Facelets question

Russell Bateman
Ranch Hand

Joined: Feb 26, 2008
Posts: 69
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
    Cesar Loachamin
    Ranch Hand

    Joined: Dec 25, 2010
    Posts: 90

    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


    When a dream is ending because to come true - OCPJP 6,7. OCE JPA EE6. MCTS
    Russell Bateman
    Ranch Hand

    Joined: Feb 26, 2008
    Posts: 69
    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.
    Tim Holloway
    Saloon Keeper

    Joined: Jun 25, 2001
    Posts: 16019
        
      20

    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.


    Customer surveys are for companies who didn't pay proper attention to begin with.
     
    Don't get me started about those stupid light bulbs.
     
    subject: Beginning Facelets question