users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] Re: CDI injection in faces converters

From: arjan tijms <arjan.tijms_at_gmail.com>
Date: Tue, 15 Oct 2013 14:27:55 +0200

Hi,

It was indeed postponed in JSF 2.2 due to some last minute complication
that was found.

We have however implemented CDI injection for converters and validators in
OmniFaces. See http://showcase.omnifaces.org/cdi/FacesConverter and
http://showcase.omnifaces.org/cdi/FacesValidator

Kind regards,
Arjan Tijms





On Tue, Oct 15, 2013 at 1:28 PM, Gerhard Petracek <
gerhard.petracek_at_gmail.com> wrote:

> hi dirk,
>
> yes - it was postponed.
> however, since i've committed it to apache myfaces-core (as an optional
> feature)
> as well as to apache deltaspike (-> you can also use it with mojarra), it
> will be available soon.
>
> regards,
> gerhard
>
>
>
> 2013/9/8 Dirk Weil <dirk.weil_at_gedoplan.de>
>
>> Are CDI injections supported in JSF 2.2 converters and validators?****
>>
>> ** **
>>
>> I thought they were, but at least injections in @FacesConverter(forClass
>> = xxx.class) annotated converters are not executed on GLF 4.0.1 (Mojarra
>> 2.2.2). Now I found some forum entries saying injections didn’t make it
>> into JSF 2.2. What is correct?****
>>
>> ** **
>>
>> Thanks for any clarification!****
>>
>> Dirk****
>>
>
>