Hi,
I'm migrating a small
Struts 1 application to a
JSF application. Tthe application at hand uses Spring to inject its dependencies between action classes, services, DAOs and
JUnit classes. I created backing beans to hold the request parameters a user might enter and a controller method (e. g. a method called save to persist user input). Honestly I'm lost about how to combine Spring's DI and the bean's JSF life cycle. I can't inject the service into the bean as the bean will be recreated for each request. For the very same reason I can't inject the backing bean to the service (which would be conceptionally wrong anyways). The Struts approach had the action classes as a seperate tier: the action classes were Spring beans. I could (re-)create this tier by hand, but I'd like to know if there's a simpler approach.