users@javaserverfaces.java.net

At which Managed Bean Lifecycle Phase does Injection happen?

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Fri, 18 May 2007 10:39:01 -0500

JSF 1.2_04 At which Managed Bean Lifecycle Phase does Injection happen or does Injection happen after all of the Lifecycle Phases have completed? If I inject an EJB with: @EJB private CustomerSessionLocal customerSessionRemote; I can do set-up with a method annotated with @PostConstruct, however I cannot use any parameters. I'd like to call a EJB method AND pass parameters each time the managed bean is loaded for the JSF page being called. What is happening is the annotated method is called once - thus any call to the page again still has the first call values, I need to pass different parameters based on the user's selections on the JSF page. JSF --> [parameters] --> Managed Bean --> [parameters] --> Injected EJB --> [parameters] --> EJB method Is this scenario possible and how? Thanks, --Todd ----------------------------------------- NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.