JSF Managed bean and managed property both necessary?

Viewed 22458

I'm new to JSF and was wondering:

If I have a controller that handles all the work for a given page and a bean that holds all the data for said page, is It necessary to have both the

@ManagedProperty(value="#{myBean}") 

annotation on the controller and the

@ManagedBean(name="myBean")
@SessionScoped

annotations on the form bean?

2 Answers
Related