Hi,

why do you define the managed-beans via the jsf-managed-bean facility?

Would be a lot easier if you also define them with the help of spring.

You can use the init-method property in Spring in order to initialize
your Spring bean.

cheers,

Gerald

On Nov 29, 2007 7:56 PM, Todd Nine <[EMAIL PROTECTED]> wrote:
> Hi all,
>   I'm using a combination of Spring and MyFaces for my project.  Since I use
> the managed bean properties to inject my Spring beans into my managed beans,
> I'm unable to do initialization in the constructor, and I really need to
> implement a callback in my managed beans to initialize values from the
> Spring business objects.  I have created something similar to the example on
> the following site.
>
> http://cagataycivici.wordpress.com/2006/06/06/managed_beans_aware_of_the/
>
> However, I'm dealing with a legacy application, and I can't depend on a
> standard naming convention as the example does, there is far too much code
> to refactor everything.  Is there any way I can get all currently loaded
> beans in the current thread instead of using something like the following to
> explicitly return it?
>
> event.getFacesContext().getApplication().createValueBinding(beanName).getValue(ctx);
>
> Thanks,
> Todd
>



-- 
http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Reply via email to