aspose file tools*
The moose likes JSF and the fly likes JSF/Spring managing beans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF/Spring managing beans" Watch "JSF/Spring managing beans" New topic
Author

JSF/Spring managing beans

horri khaled
Ranch Hand

Joined: Mar 24, 2008
Posts: 36
Hi,
I want to integrate JSF 2 with Spring 3, I find in several books and web sites some tips to do that, I follow instructions step by step and the war is deployed successfully where the welcome page
is displayed, but when I click on the button to execute an action I get this error:


My Configuration looks like :
web.xml:



faces-config.xml located in WEB-INF/jsf:
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

<managed-bean>
<managed-bean-name>userBean</managed-bean-name>
<managed-bean-class>com.integradis.UserBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>userService</property-name>
<value>#{userService}</value>
</managed-property>

</managed-bean>

<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
</application>
<!--
<application>
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
</application>

<application>
<variable-resolver>
org.springframework.web.jsf.DelegatingVariableResolver
</variable-resolver>
</application>
-->
</faces-config>


web-application-config.xml located in WEB-INF/spring:


I use Jboss 6 as a runtime server

Any Help is appreciated

Regards
Horri

SCJP 5
 
 
subject: JSF/Spring managing beans