Just confused the initialization of the managed bean defined in the face-config.xml file. When does the managed-bean actually initialize? is it based on what scope you define for the bean? Like, request-scoped beans only initialize when they are needed in request? session-scoped beans are initialize when a session is created?( and how a session is created? how to know which session they belongs to?) and application-scoped beans are built when the server start? and Can someone tell me about the life-cycle for these beans? thanks~~
From what I've seen, it's initialized the first time it's needed.
Correct. Managed beans are created/initialized on demand. Specifically, session and application scope beans are not created when the session or application is first created, but rather when the first attempt to reference them is made in a JSF page request. Which means that if you need these items created in advance, you have to manually construct them in the old-fashioned non-JSF way. Or gimmick up a reference.
Customer surveys are for companies who didn't pay proper attention to begin with.