The javax.faces.model.ManagedBean and javax.faces.model.SessionScoped annotations mark the class as a JSF managed bean that is valid for the length of a web session.
Directly above the class declaration, add the @ManagedBean and @SessionScoped annotations.
@ManagedBean
@SessionScoped
public class DukesBDay{
...
}
Right-click in the editor and select Fix Imports.
In the Fix All Imports dialog, select javax.faces.bean.SessionScoped as the fully-qualified class name for SessionScoped and click OK.