webtier@glassfish.java.net

JSF 2.0 support of Facelets TagHandler

From: <webtier_at_javadesktop.org>
Date: Fri, 01 Jan 2010 05:09:18 PST

For a JSF 1.2 (with facelets 1.1.14) based application I had implemented a few "custom tags" based on the abstract com.sun.facelets.tag.TagHandler class. These tags are kind of providing conditional rendering of child content (Described in my blog at http://www.martinahrer.at/blog/2009/10/20/control-rendering-of-ui-elements-based-on-validation-results/).

After migrating that application to JSF 2.0.2 I experience a very different behaviour. TagHandlers now seem to be executed during the RESTORE_VIEW phase while in the JSF 1.2 version it was executed during the RENDER_RESPONSE phase. This change breaks my tags as they evaluate validation messages to provide the conditional rendering logic.

So I'd like to know what the current state of the facelets API is. What features from the initial facelets library are supposed to be supported in JSF 2?

I have found this posting from Ed http://weblogs.java.net/blog/edburns/archive/2009/10/15/jsf2-facelet-tag-handlers which makes me assume that the standardization of facelets is not quite completed?

Is there any workaround currently available to make my tags work with some acceptable amount of required changes?

Thanks for your feedback!
[Message sent by forum member 'martinahrer' (martin.ahrer_at_gmail.com)]

http://forums.java.net/jive/thread.jspa?messageID=378245