1
I have a problem to integrate Spring MVC with Primefaces. It seems that there is a conflict between them.
You have the configuration in web.xml
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Map these files with JSF -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
faces-config.xml file with Spring
org.springframework.web.jsf.el.Springbeanfaceselsolve
And yet it didn’t work.
I’ve tried to this tutorial and the Spring Web-flow tutorial that talks about Spring-Faces and didn’t work.
Good think you should be talking about Spring and not Sring-MVC because the tutorial you passed does not deal with Spring-MVC, better than posting the code in this case would be you post the output of your application server or Servlet (jboss,Tomcat) and also post your pom.xml so colleagues can help you more accurately. Also post faces-config.xml and applicationContext.xml
– deFreitas