Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change 
notification.

The following page has been changed by CraigMcClanahan:
http://wiki.apache.org/struts/ShaleAndSpring

New page:
+++-- Shale And Spring: Using Spring Dependency Injection With Shale

Since version 1.1.5 of Spring, that framework has included a convenient 
integration with JavaServer Faces that may be leveraged in a Shale based 
application.  The integration includes a custom JSF {{{VariableResolver}}} 
implementation that is invoked first whenever a value binding or method binding 
expression is evaluated.  In other words, the JSF managed beans facility 
behaves like this:

* If there is a registered managed bean for the specified name, use the 
standard JSF facilities to create it (as usual).

* If there is a configuration for this bean in the Spring 
WebApplicationContext, use Spring's BeanFactory to create it.

* If neither of the above facilities recognizes the name, return {{{null}}}.

This technique allows you to transparently use JSF value binding expressions 
(either in components, or through programmatic manipulation) that access beans 
managed by Spring instead of by the JSF managed beans facility.

Reply via email to