Search code examples
springjsfmanaged-bean

Spring managed JSF beans


I am using Spring managed JSF beans, now do i have to use annotation tags Ex.@scope of spring or of JSF ?

I noticed that @ViewScoped which is JSF annotation not working and still behaving as request scope ?


Solution

  • If you are using org.springframework.web.jsf.el.SpringBeanFacesELResolver for Spring + JSF integration, then you need to to mark scope with org.springframework.context.annotation.Scope annotation.