dev@woodstock.java.net

Re: Facelets Update and Another Question

From: Gregory Murphy <Gregory.Murphy_at_Sun.COM>
Date: Thu, 01 Mar 2007 09:30:15 -0800

Jason Lee wrote:
> I started working yesterday on integrating the annotations processing
> in the RI sandbox code and have hit a bit of a snag. Currently, in
> theory, as I've not tested this, the Sandbox should work fine under a
> 1.1 impl, but the annotations processor emits 1.2 config files,
> sources, etc. What's the general feeling on a patch to add support
> for creating 1.1 files, with the default compatibility being 1.2 (and,
> thus, maintaining the status quo)? I can submit a patch for that as
> well (once I get it done).
Is there no sandbox for JSF 1.2? Or are you constrained to 1.1 because
you need to deploy to a Java EE 1.4 app server?

I had planned originally to add support for both JSF 1.1 and 1.2, but as
this wasn't a critical requirement, I put it off. Supporting both
versions is non-trivial, because different annotations for events are
required (for JSF 1.2 you need to know the signature of the event
handler method). One solution might be to simply give up trying to use
annotations to describe events. I suspect that the vast majority of
component libraries simply rely on the events already defined by JSF.

I am also thinking about some major surgery on the annotation library,
and it might make sense to delay adding support for 1.1 until the
surgery is complete. I want to split the library into two libraries: one
that describes just Java Beans metadata, and aligns more closely with
the work currently under discussion as part of JSR 273; and another that
describes metadata specific to JSF.

// Gregory