I have a problem integration JSF2.0 as a view technology to spring webflow. I managed to get it "almost" working, the only thing left is configuring ajax support for JSF2.0.
Ajax requests are sent, responses from the server are received, but the response doesn't trigger re-rendering of the component.
Few clues to help to solve the problem:
When it comes to generating .js links to resources, JSF behavior is wrong. JSF tries to access the following link:
http://localhost:8080/${context_path}/${flow_name}/javax.faces.resource/jsf.js?ln=javax.faces This gives 404 back. I had to hard-code the following link in the template to get some of the ajax support:
http://localhost:8080/${context-path}/javax.faces.resource/jsf.js.faces?ln=javax.faces (I found this link after switching the web-flow off and investigating the source code of plain JSF processed page)
I assume, that the configuration of JSF is correct. If I drop the webflow from the processing chain, everything works as expected. Links are OK, re-rendering of the component is OK
If I expose my services as @ManagedBean (JSF native approach) and don't use Spring backed beans re-rendering works fine, but I'm not able to interact with webflow and flow scoped variables (web-flow doesn't see native @ManagedBeans) and still I have to use the hard-coded links.
I don't have any Spring resource servlet / filter. I don't use urlRewrite rules to forward to my flows.
If config files are required - I will post them in the question.
Any help is appreciated. Seems that this is a blocking issue of using the whole technology stack.
Recently I made a migration from JSF 1 to JSF 2 in a spring webflow project. Later I figured out that ajax doesn't work. I had these two beans configured in webmvc-config.xml
The first bean was the problem
You cant' have them both. So make sure you have only JsfFlowHandlerAdapter
Here are some framework versions in my project just in case
Step :1 web.xml
Step: 2 faces-config.xml
Step: 3 webflow-config.xml
Step :4 webmvc-config.xml