jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: Public Review Draft comments #1

From: Kito Mann <kito.mann_at_virtua.com>
Date: Fri, 30 Nov 2012 15:48:59 -0500

On Fri, Nov 30, 2012 at 3:41 PM, Manfred Riem <manfred.riem_at_oracle.com>wrote:

> Hi Kito,
>
> @PostConstruct and @PreDestroy are indeed supported for old style
> @ViewScoped beans.
>

Unless I'm mistaken, all of the Java EE Common Annotations (not the CDI
ones) are supported for ViewScoped beans. I think it should stay that way,
along with FlowScoped beans as well.

>
> On 11/30/2012 2:33 PM, Kito Mann wrote:
>
>
>
> On Fri, Nov 30, 2012 at 3:24 PM, Edward Burns <edward.burns_at_oracle.com>wrote:
>
>> >>>>> On Fri, 30 Nov 2012 15:15:07 -0500, Kito Mann <kito.mann_at_virtua.com>
>> said:
>>
>> >>
>> KM> Also, according to this, view-scoped and flow-scoped beans are not
>> >> eligible
>> KM> for resource injection. Is that accurate?
>> >>
>> >> Yes, that is correct. I will clarify that.
>> >>
>>
>> KM> Is there a way we can avoid this limitation? Are they not eligible
>> for
>> KM> resource injection and the other Java EE annotations? If so, that's a
>> big
>> KM> deal, because ViewScope is most popular scope I see these days.
>>
>> They will be injectable if they are CDI beans, but I wasn't going to
>> require them to be injectable if they are javax.faces.bean beans. Is
>> that ok?
>>
>
> Not even for @PostConstruct and @PreDestroy? Isn't that supported today
> for view-scoped beans?
>
>>
>> Ed
>>
>> --
>> | edward.burns_at_oracle.com | office: +1 407 458 0017<%2B1%20407%20458%200017>
>> | homepage: | http://ridingthecrest.com/
>>
>
>