Spring beans injected into JSF Managed Beans?

First of all and I think this your problem that DelegatingVariableResolver is depricated in all JSF version after 1.1 and you are using 1.2 so please use this following configuration.

First of all and I think this your problem that DelegatingVariableResolver is depricated in all JSF version after 1.1 and you are using 1.2 so please use this following configuration. Org.springframework.web.jsf.el. SpringBeanFacesELResolver Hope it helps.

1, that should fix it – Bozho May 31 at 20:38 Thanks I will give that a try tomorrow first thing. I did try using a el-resolver but I don't think it was that class. I'll update tomorrow.

Cheers for the help. – haju Jun 1 at 1:33 @Bozho and @danny. Lesnik it didn't seem to work.

A key piece information I left out is that I am also using Icefaces 1.8 which uses jsf 1.2 . Not sure if that makes a difference. When using the the contextLoader Listener, it doesn't need any kind of "load" priority like you would set with the contextLoadServlet?

– haju Jun 1 at 12:18 @haju - did you try my suggestion with annotations? Does it work? – Bozho Jun 1 at 12:19 @Bozho what spring jar has the Inject annotation?

I added all the spring jars onto the build path and it can't seem to find it. I don't have to use the Controller annotation in order to use the inject one correct? I can still define a jsf managed bean and within that class for the bean use the inject annotation for spring beans right?

– haju Jun 1 at 13:04.

In addition to using SpringBeanFacesELResolver you can benefit even more from spring by using annotations. So instead of defining your managed bean in xml, just do: @Controller public class FooBean { @Inject private SpringService service; .... }.

I assume so. – haju Jun 1 at 1:34 @haju - yes. All managed beans would live in the spring context.

(You'll just have to include their package in the component-scan) – Bozho Jun 1 at 5:59.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions