Ryan:
Thank you! I honestly forgot about Managed Properties.
--Todd
-----Original Message-----
From: Ryan.Lubke_at_Sun.COM [mailto:Ryan.Lubke_at_Sun.COM]
Sent: Friday, May 18, 2007 12:32 PM
To: users_at_javaserverfaces.dev.java.net
Subject: Re: At which Managed Bean Lifecycle Phase does Injection
happen?
Todd Patrick wrote:
> 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?
>
Injection isn't associated with a phase, it will occur when the bean is
first referenced and not already in scope.
> 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?
>
If you use managed-properties, these would be initialized before the
@PostConstruct callback was invoked and thus be available for use.
> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail:
> users-help_at_javaserverfaces.dev.java.net
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net