Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

New Old Topic (What to read on Facelets)

 
Aleksey Serov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I know JSF is now (JEE 6) oriented on using Facelets, not JSP as a presentation layer. Have read their documentation several times but still it looks fuzzy. Can anyone recommend a clear but deep tutorial on it?
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that my introduction was an IBM Developerworks article titled "Facelets fits JSF like a Glove".

In practice, Facelets isn't that big a switch. In fact, I can't really call it a "switch" if you were using the more modern JSP view definition format. If your view definitions were littered with antique JSP-specific constructs such as JSP directives, TLD references and scriptlets, you'd need to clean them out. Otherwise, it's mostly a matter of renaming the View Definition template to an ".xhtml" extension, doing a one-time config of web.xml and adding tags from the "ui" namespace if/as desired.
 
Aleksey Serov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:I think that my introduction was an IBM Developerworks article titled "Facelets fits JSF like a Glove".
Hi Tim!
I believe I read your article at its time, but I will look at it once again. Otherwise: That is not about porting existing application to JSF. And that is not about moving from previous version of JSF. What I am interested in is details of composition semantics. The Oracle documentation though good in general in this part is a bit fuzzy.
 
Tim Holloway
Bartender
Posts: 18419
60
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Setting up a web.xml for Facelets can be a bit of work, and using Facelets in older systems requires adding your own facelet jars to the WAR, but those are one-time things.

The actual Facelets tagset really isn't that complicated. There's (at a rough guess) only about 10 tags in the "ui" namespace and they're mostly concerned with who includes whom and how much is to be included. You can also define your own Facelets tags, but I rarely find the need to do so.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!