I'm using GlassFish 3.0.1. I want to know if I can use:
@ManagedBean
@ConversationScoped
Instead of @Named
?
@ManagedBean
is a JSF annotation while @ConversationScoped
is a CDI annotation, I can't think of any valid scenario to combine them.
In general @Named
will cover almost all you needs and it make your bean available to EL thus the JSF pages.