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

[jsr344-experts] Re: 1087-ViewScoped: PROPOSAL

From: Kito Mann <kito.mann_at_virtua.com>
Date: Mon, 13 Aug 2012 12:16:15 -0400

On Thu, Aug 9, 2012 at 9:50 AM, Edward Burns <edward.burns_at_oracle.com>wrote:

>
>
> The use of CDI for all things managed bean was decided long ago, when
> CDI and JSF were both included in the JavaEE Web Profile. That decision
> cannot be revisited. JSF will still keep the practice of running just
> fine in straight up Tomcat, but features that use CDI, such as flows and
> the new @ViewScoped annotation (also in the flow package) will only work
> if CDI is present.
>
> The same is true for Bean Validation, the features that use Bean
> Validation only work if Bean Validation is present.
>

That makes sense, but why do we need a new annotation? Can't we just have
ViewScope be picked up by CDI if it's in the classpath?

>
> Ed
>
> --
> | edward.burns_at_oracle.com | office: +1 407 458 0017
> | homepage: | http://ridingthecrest.com/
>