June 2014
Intermediate to advanced
578 pages
12h 2m
English
Until now, we have focused especially on the communication between Facelets and managed beans. In this section, we will cover another important aspect regarding JSF communication—managed beans communication. We will discuss the following topics:
A managed bean can be injected into another managed bean using @ManagedProperty. For example, let's suppose that you have a managed bean in the session scope that stores a player name and surname, as shown in the following code:
@Named @SessionScoped public class PlayersBean implements ...