have you tried this? Because actually, it does work. Just define your beans either in applicationContext.xml or faces-config.xml and access them from your jsf pages:
<h:outputText value="#{B1.field1}" />
You only have to double define a bean if you want to have a spring bean with session or request scope.
HTH,
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i have a singleton bean managed by spring, let's call it B1.
i want to reference this bean from a jsf page, as in:
<h:outputText value="B1.field1=[#{B1.field1}]" />
with spring-jsf do i even have to mention it in a faces-config.xml file as a managed-bean?
if yes, what would the managed-bean definition look like in M2, if no "psyched" and never mind ;)
thanks...
Hi Tony,
have you tried this? Because actually, it does work. Just define your beans either in applicationContext.xml or faces-config.xml and access them from your jsf pages:
<h:outputText value="#{B1.field1}" />
You only have to double define a bean if you want to have a spring bean with session or request scope.
HTH,
Thomas