spring-webflow-2

Spring WebFLow Handling Request in JSP

I am new bie to Spring Webflow, I have am using Custom FlowHandler I can able reach the respective Controller, by if set a attribute in a request Object i can't get it in JSP that is View state. How can I proceed in this? ...

Spring Web Flow - How can I set up unit test with values already in conversationScope?

I am working on a project using Spring Web Flow 2.0. I am trying to unit test a flow that begins with a decision state. The decision state checks the value of an object that is on the conversationScope. I cannot figure out how to insert a value into the conversationScope for the unit test. I have tried: getConversationScope().put("...

Can Spring Webflow eliminate the need for controller classes?

For a relatively simple application, can Webflow be employed to reduce the need to create form controllers? Well, certainly it can, but I guess what I'm asking is: can and should I write an entire application using Webflow for all of the controller / view logic if my goal for doing so is to reduce the amount of code that I write? I'm s...

Setting messages.properties in a Spring Webflow unit test

I'm using Spring Web Flow 2.0.7, and just started setting up my unit tests. I've got my flows directory, containing the flow xml files and my messages.properties files on my classpath. It's loading fine, but it doesn't seem to be automatically picking up the messages.properties file for the flow, and thus my validation unit tests are...

Customizable Web Applications

At my company we develop prefabricated web applications. While our applications work as-is in many cases, often we receive complex customization requests. We are having a problem in trying to perform this in a structured way. Generic functionality should not be influenced by customizations. At the moment we are looking into Spring Web Fl...

No flow definition found. Spring web flow

Hi, I am new to Spring webflow and now I am trying the example in Spring recipes book and I know this is a basic question. I am getting the error as follows, org.springframework.webflow.definition.registry.NoSuchFlowDefinitionException: No flow definition '${flowExecutionUrl}&_eventId=next' found at org.springframework.webflo...

Unit testing nested subflows (subflows of subflows)

I'm trying to write unit test for a flow, which has subflow, which, itself, has another subflow. I register first flow using FlowDefinitionResource getResource(FlowDefinitionResourceFactory resourceFactory). Then I register subflow definitions during test execution in FlowDefinitionRegistry before transitioning to them. Transitioning ...

Spring Web Flow and JSF2 configuration problem

Hi all, i would like to use Spring Web Flow and JSF 2, but it doesn't work. If I use a h:commandButton the transition is not executed and the page is only refreshed. My configuration is: web.xml: <!-- Initializing JavaServer Faces, *NOT* used at runtime due to Spring Web Flow --> <!-- FacesServlet --> <servlet> <servlet-nam...

Can I run Webflow 1.0 flows through Spring Webflow 2.1.1?

I have a project built with Webflow 1.0 and Spring 2.0. We'd like to upgrade to Spring 3, but that requires Webflow 2.X. I've updated all the Spring and Webflow jars in the project, but when I try to load the initial flow, I get: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot ...

Webflow2: not pre-populating the form on back button

Hi I am new to webflow 2 and I have query regarding the pre-population of the form with previous data on clicking the back botton. I developed a simple application using webflow 2, in which I fill the form and submit and get the results accordingly. But when i click the back button the form doesnt show any of the previously filled data ...

Ajax call to a method in flow handler - Spring web flow 2.1.1

Hi, I have a problem with performing Ajax call inside of flow (created by spring web flow) on a flow handler. Assuming that we are in step 2 of this flow and I would like to call a method on server which will add a new object to a list displayed on a page. This method call should be performed by flow handler and without refresh the whol...

Architecture for Spring Webflow 2 bean definitions

I have a project that uses Spring Webflow 2, extensively. There's well over 30 flows, each with a non-trivial number of beans. I've noticed that the application has been slowly gaining in startup time, and after setting the log level to debug and running through the logs, it looks like the problem is the increasing number of flows. To...

Unable to locate Spring NamespaceHandler for element 'flow'

I am developing a spring webflow (2.0.7) project using SpringSource Tool Suite. I am trying to setup a basic flow. My someflow.xml looks like this: <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework....