| I have this prob too, and I don't use AppFuse. I also use Tomcat 5.5.17 I also get NPEs. (@ Spring bean is not injected into JSF bean) I have the same setup: my JSF beans are (to be...) injected with a Spring bean. My web.xml is properly setup. (app part with Spring var resolver, listener, ....) It's also quite recent that this happens. Before some JSF upgrades this was no problem. -Wolf Ps I never refer to it directly in a JSF page. The Spring bean used is my persistence Mgr. Used in every JSF bean, but not referenced in the pages. On 17 Jul 2006, at 00:50, Dhananjay Prasanna wrote: To clarify, when you resolve it from a jsp page do you do so from within a JSF component? As in: <h:outputText value=”#{searchManager.someproperty}”/> If yes and it works, then this is some problem with the wiring, best addressed by appfuse and the raibleans ;) Otherwise check to see that you have the proper delegating variable resolver in the <application> tag of your faces-config.xml, this should be a spring class from their jsf package (org.springframework.blah…jsf.DelegatingVariableResolver) and that there are no conflicting variable resolvers above it; as they go in order of precedence. In fact you are best off making sure the spring resolver is right on top because it delegates to the default JSF resolver if it cant find a spring bean of that id. I have to say though, that I don’t know if Appfuse has some different funkier way of wiring the two together. And yes that looks like a WebApplicationContext (the sure test is if there is a <listener> with org.springframework.blah….ContextLoaderListener). From: Robert Campbell [mailto:[EMAIL PROTECTED]]
|
- Re: JSF/Spring integration - managed-property problem Wolf Benz
- RE: JSF/Spring integration - managed-property prob... Dhananjay Prasanna
- Re: JSF/Spring integration - managed-property ... Wolf Benz
- Re: JSF/Spring integration - managed-prope... Robert Campbell
- Re: JSF/Spring integration - managed-p... Wolf Benz
- Re: JSF/Spring integration - mana... Wolf Benz
- RE: JSF/Spring integration - managed-property prob... Dhananjay Prasanna
- Re: JSF/Spring integration - managed-property ... Wolf Benz
- Re: JSF/Spring integration - managed-prope... Robert Campbell
- RE: JSF/Spring integration - managed-property prob... Dhananjay Prasanna

