I have a web application using JSF framework with Primefaces components. For persistence I'm using Mybatis.
One of the requirement of the web application is use Spring for gear the presentation layer to the control layer.
I supuse that this requirement is talking about using Spring MVC. The problem is that JSF framework use also MVC...
I have been reading some tutorials about this and basically they configure de applicationContext.xml, add the Spring filters on web.xml and add the Spring El resolver on faces-config.xml. Then they add beans to applicationContext.xml.
My question is if this is correct and how can I define @ManagedBean with @ViewScoped in Spring, as I could read Spring does not support View Scoped.
I'm using @ViewScoped because I have a fileUpload control from primefaces.
Thanks for your help.
Aucun commentaire:
Enregistrer un commentaire