@Controller) with @Scope(\"session\").
I recently combined JSF with Spring. I use RichFaces and the @KeepAlive feature, which serializes the JSF bean backing the page. There are two ways I have gotten this to work.
1) Use @Component("session") on the JSF backing bean
2) Get the bean from ELContext when ever you need it, something like this:
@SuppressWarnings("unchecked")
public static T getBean(String beanName) {
return (T) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(FacesContext.getCurrentInstance().getELContext(), null, beanName);
}