Search code examples
springjsffaces-config

Spring El Expression


I'm switching from faces-config to Spring and wanted to know how you can pass a property from one bean to another:

e.g.

<bean id="myBean" class="Bean1">

 </bean>
 <bean id="myBean2" class="Bean2">
    <constructor-arg ref="#{myBean1.value}"/>
 </bean>

Solution

  • Upgraded to Spring 3.0 which has spring el support