I want to ask to the expert over here which one is a better approach for injecting Spring bean inside of a JSF Managed Bean.
I have gone through many tutorials on this topic and there are 2 ways to achieve this.
1)By extending SpringBeanAutowiringSupport class
2)By registering SpringBeanFacesELResolver class in faces-config.xml file.
But option 2 is not working in case of an ADF Application.I am unable to figure out the reason.I have registered the SpringBeanFacesELResolver in faces-config.xml file but whether it has to be define in adfc-config.xml file I am not sure.
So,I have gone with Option 1. So,I want to know is there any drawback of this approach?
Whether any extra configuration needed to make SpringBeanFacesELResolver worked for ADF application?