jsf 2 Session bean created for every request [duplicate]
问题 This question already has an answer here : @SessionScoped bean looses scope and gets recreated all the time, fields become null (1 answer) Closed 3 years ago . ello I have 2 Managed beans, one View scoped, the other Session scoped. The View scoped bean is defined as @ManagedBean @ViewScoped public class InvoiceController implements Serializable { private static final long serialVersionUID = 1L; @ManagedProperty(value="#{invoiceService}") private InvoiceService invoiceService; The session