Facelets has figured out this:

Here's the class to imitate.

https://facelets.dev.java.net/source/browse/facelets/src/java/com/sun/facelets/util/FacesAPI.java

It's basically checking for the existance of

Application.class.getExpressionFactory()

-Mike

On 10/28/05, Jesse Alexander (KBSA 21)
<[EMAIL PROTECTED]> wrote:
> Hi
>
> When I want to write a component that must run under more than
> JSF-implementation,
> I often should know (runtime not development time) which implementation
> is running, in
> order to use the correct base-classes.
>
> Has somebody devised a clever method to find out which JSF-runtime is
> active?
> Or should we add something to enable this?
>
> regards
> Alexander
>

Reply via email to