voyent
ICEFaces and Spring  XML
Forum Index -> General Help
Author Message
AhmedT

Joined: 05/Sep/2007 00:00:00
Messages: 12
Offline


Hi,
Does ICEFaces 1.6.1 work with Spring's DelegatingFlowVariableResolver?

I have a small test app that's got everything setup and I can see spring initializing my beans and so on. But the moment I try to reference a bean in my jsp page with the #{} notation ICEFaces throws an exception that my bean resolved to null with no trace of Spring being involved.

Is this known to work (or not work)?

greg.dick

Joined: 26/Oct/2004 00:00:00
Messages: 85
Offline


You can either define your beans via JSF in the faces-config.xml file, or you can define them in the services-config.xml file in the Spring way, but you have to use the following resolver class:
Code:
 org.springframework.web.jsf.DelegatingVariableResolver
 

as shown in the Spring 2.1 reference manual, section 15.3 Integrating with JavaServer Faces.

I don't know what the difference between
Code:
org.springframework.webflow.executor.jsf.DelegatingFlowVariableResolver
 

and

Code:
org.springframework.web.jsf.DelegatingVariableResolver
 

is however. That's a question for the Spring forum.
[Email]
AhmedT

Joined: 05/Sep/2007 00:00:00
Messages: 12
Offline


Greg,
Thanks a lot, it worked. Looked at Spring's code and it looks like org.springframework.webflow.executor.jsf.DelegatingFlowVariableResolver

is "old" :-). It's:
a. very silent about what happens (not a single line of logging).
b. requires a FlowExecution to be active (which is not necessarily the case for all calls)

My conclusion: this functionality was moved into Spring Core and is maintained there.

If someone can confirm that it would be great.

AhmedT

Joined: 05/Sep/2007 00:00:00
Messages: 12
Offline


Actually, I was completely wrong in my last response!

The DelegatingFlowVariableResolver in the webflow packages is meant to be used with, guess what!, webflow :-). It's part of the webflow framework.

The Other one from web.jsf is meant to be used with Classic Spring MVC with JSF.


The two are very different different things and expect things to be setup in different ways.

I was able to get org.springframework.webflow.executor.jsf.DelegatingFlowVariableResolver since I just had some "misunderstandings" in my configuration.

 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team