Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Facelets for Templating  RSS feed

 
Kamron Abtahi
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a (very) simple example.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!