Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Tiles like definitions.xml in facelets  RSS feed

 
neni na
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to create a faceletsdef.xml and make jsf controller to read the path from the definitios file to load corresponding xhtml(composition).
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're attempting to re-create Apache Tiles in JSF using Facelets, I'm happy to say that things don't work that way.

I've always hated Tiles. Too much work and too much maintenance. Facelets provides a much cleaner way of tiling pages. And simpler. It doesn't require a tile configuration file, just page layouts and page definitions that reference those layouts. It's as simple as defining pages like so:


 
neni na
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Thank you for the reply. I agree with your point "Facelets provides a much cleaner way of tiling pages" . So, I have stopped thinking about creating xml definitions. Started using facelets composition and templates.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!