JSF taglib tutorial 

Joined:
08/13/2009
Posts:
164

November 21, 2011 16:30:56    Last update: December 07, 2011 08:54:32
This is a series of notes on building custom JSF 2.0 facelet taglibs, ordered from the simplest to the less simple. Hopefully it can help you to get started on how to build custom taglibs for JSF.
  1. A simple JSF facelets taglib example
    The simplest taglib I can think of.
  2. Using EL expression with a custom tag
    Make tag attributes dynamic.
  3. Mixing custom tag with facelet ui taglibs
    Discover things you might run into when you get into more details.
  4. Which EL context to use?
    Using the wrong EL context can lead to subtle bugs.
  5. JSF facelet taglib backed by a UI component
    A UIComponent can be a tag handler, without being TagHandler.
  6. Using tag handler, UI component and renderer with a JSF facelet taglib
    See how tag handler, UI component and renderer work together.

The code shown in these notes aim at simplicity rather than completeness. Only the render response phase of the JSF lifecycle is demonstrated. Error handling is lacking. For the last two examples, the looping variable leaks beyond the tag scope.
Share |
| Comment  | Tags