Why is this not allowed:
@SessionScoped @Named
public void login{
@Produces @SessionScoped @LoggedIn
public User getCurrentUser() {
return user;
}
}
You see, I want to use the SessionScoped
in my producer Method.
The comiler says: The annotation @SessionScoped is disallowed for this location
You imported the jsf version of @SessionScoped?