dev@javaserverfaces.java.net

JSF 2 - Annotations

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Sat, 22 Nov 2008 13:11:14 +0100

Hi,

I wonder about things like this:
@ManagedBean(name = "userInfo")
@SessionScoped
public class UserSessionInformationBean
{
  ...
}

Why not using the Shale way of things ?

==> @Bean(name="mybean", scope=Scope.SESSION)
(where scope is an enum)

Thanks!
Matthias

-- 
Matthias Wessendorf
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf