>>>>> On Thu, 2 Aug 2012 16:00:28 -0400 (EDT), Ken Finnigan <kfinniga_at_redhat.com> said:
KF> +1 to that, makes sense to base it off CDI in preparation for
KF> ManagedBean deprecation.
>>>>> On Wed, 8 Aug 2012 13:03:10 -0400, Kito Mann <kito.mann_at_virtua.com> said:
KM> On Tue, Aug 7, 2012 at 6:27 PM, Edward Burns <edward.burns_at_oracle.com>wrote:
>> >>>>> On Mon, 6 Aug 2012 16:30:05 +0200, Werner Keil <
WK> Have you asked Pete and/or Mark Struberg?
EB> No, I haven't. What should I ask them?
KM> I would think it'd be good to look at how SeamFaces and CODI implemented
KM> ViewScope, since they both used CDI.
>>>>> On Wed, 8 Aug 2012 21:38:23 +0100 (BST), Mark Struberg <struberg_at_yahoo.de> said:
MS> Ed and I quickly talked about it 2 weeks ago if I remember correctly.
MS> Imo it's just a different flavour.
MS> The current ViewScoped annotation is perfectly fine to get picked up
MS> by CDI, Spring, and any other DI container. There is still no
MS> @FlashScoped in JSF in the javax.faces.bean package yet, right?
MS> Well, and the other scopes are redundant to the EE standard scopes:
MS> @RequestScoped, @ApplicationScoped, @SessionScoped.
MS> So I can certainly see that Ed likes to get rid of the whole
MS> package. There is no technical necessity to create a new @ViewScoped
MS> though, it's really just a matter of taste and sanity.
MS> The other question is whether you like to add CDI annotations to the
MS> JSF api package. Again: for just the scopes it is not needed as all
MS> this can be registered via CDI-Extensions as well (like CODI and
MS> Seam3 does). If you make this e.g. @NormalScoped then you will
MS> always need a CDI api jar in the classpath. Not sure if Spring users
MS> would be happy about that :)
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.
Ed
--
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage: | http://ridingthecrest.com/