aspose file tools
The moose likes JSF and the fly likes Facelets for Templating Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Facelets for Templating " Watch "Facelets for Templating " New topic
Author

Facelets for Templating

Kamron Abtahi
Greenhorn

Joined: Jun 17, 2010
Posts: 17
Hey Everybody,

I have created a simple application that utilizes JSP plugins. I have noticed as i work through the various pages that i have a common template or repeat in code for the header/footer/sidebar and the middle area is dynamic and changes from page to page. I looked around for a good way of "templating" the sections that are repeated in all of the pages. I found that facelets seems to be the answer. I guess my first question is to confirm if this is true

Next i was wondering if someone could provide a simple facelets example. Anything that shows the connection between the xhtml pages to help better convey the architecture of it in my head would be help.
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Here is a (very) simple example.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Facelets for Templating
 
Similar Threads
Spring Email: Creating email content using a templating library
JSF + Tiles = no navigation-rules
Question on Facelets
c:import with Facelets
Including JSF pages in JSF pages