aspose file tools*
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
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: 16305
        
      21

    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.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Beginning Facelets question