Questions tagged [spring-webflow]

Spring Webflow is a web-app framework which helps to define the page navigation rules in a intuitive, and reusable way.

Spring Web Flow is a Spring MVC extension that allows implementing the "flows" of a web application. A flow encapsulates a sequence of steps that guide a user through the execution of some business task. It spans multiple HTTP requests, has state, deals with transactional data, is reusable, and may be dynamic and long-running in nature.

1302 questions
10
votes
3 answers

Simple Variable in Web Flow

I've different view-state's in flow.xml. All of theses states have the same view. Now i want to set a variable which includes just a String und call it in the view-file to customize the content. Here are my files: flow.xml: for the example two of…
Michael Schmidt
  • 9,090
  • 13
  • 56
  • 80
9
votes
2 answers

Spring Webflow - access exception using transition.on-exception attribute

I wondering how can I access exception object using on-exception attribute? My current configuration looks like this: I have to access some exception attribute in…
pzieba
  • 171
  • 1
  • 11
9
votes
4 answers

Accessing a bean with a dot(.) in its ID

In a flow definition, I am trying to access a bean that has a dot in its ID (example: However, it does not work. SWF tries to find a bean "bus" instead. Initially, I got over it by using a…
Arnelism
  • 1,484
  • 1
  • 15
  • 22
9
votes
1 answer

Spring Webflow : how do I pass an attribute from one flow to another during a transition?

I have an action-state that evaluates an expression and then transitions to various other states depending on the result. One of the result states is a subflow-state that hands control to another flow, example;
Nick Foote
  • 2,425
  • 9
  • 36
  • 47
9
votes
1 answer

Spring Security : Bypass login form

I want to bypass the login form for a Spring webflow (Spring 2.0.5) application under certain scenarios (so the login form is presented for normal users but when the URL is like…
Dchucks
  • 1,189
  • 5
  • 22
  • 48
8
votes
1 answer

confusion about spring webflow execution key, what's the semantics behind

Recently, I looked at spring 2.3 webflow booking-faces demo, I found it strange that a different flow execution key is assigned every time I click to "browse" hotel detail. When I search the hotels and page to the 5th page of the search result, I…
spaadecon
  • 81
  • 1
  • 3
8
votes
3 answers

Validate to see if form has changed

I am writing a validator which needs to test if a spring form object has changed. In the validator if no changes have been made to the form, an error should be displayed. Is there a spring mechanism to do this? This is because a very expensive…
Mitch
  • 81
  • 1
  • 2
8
votes
5 answers

How to add "api" prefix to all controllers under one package com.myproject.api?

I was trying to find it but I found many different scenarios but not this one. What I want to do is to add "/api/" prefix to all routes in controllers under com.myproject.api . I want "/api/*" for all controllers under package com.myapp.api and no…
Marek Urbanowicz
  • 12,659
  • 16
  • 62
  • 87
8
votes
1 answer

Ajax + Spring Webflow

First, I am using spring webflow and some spring javascript to make ajax calls easier. As of right now, I am having ajax make a call into webflow to display the appropriate fragment. So I am attempting to use Spring.AjaxEventDecoration for my ajax…
Adam
  • 95
  • 1
  • 2
  • 8
7
votes
3 answers

Gracefully handle expired HttpSession in Spring WebFlow

(From SpringSource forum.) When the HttpSession has expired and the user re-submits a page in the flow, he/she is sent back to the beginning of the flow. All I want to add to this behavior is a message explaining why it occurred. "You were inactive,…
dbreaux
  • 4,982
  • 1
  • 25
  • 64
7
votes
3 answers

Is there a tool to visualize a grails webflow?

As I am writing my first grails webflow I am asking myself if there is anyy tool or script what can visualize the flow? Result can be a state diagram or some data to render in a graph tool like graphviz.
skurt
  • 1,019
  • 2
  • 13
  • 29
7
votes
1 answer

How to define general/fall-back error page in web.xml

My Java web app currently maps certain error codes to an error servlet (spring web flow, actually, but that should be besides the point), by doing this in web.xml: 500
Rune Aamodt
  • 2,551
  • 2
  • 23
  • 27
7
votes
2 answers

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…
tiurin
  • 838
  • 9
  • 15
7
votes
1 answer

Apache Tiles wildcard with Spring WebFlow

Apache Tiles 2.1.3 has a wildcard feature where a tiles definition includes an asterisk:
user1071914
  • 3,295
  • 11
  • 50
  • 76
7
votes
1 answer

Case-insensitive query string request parameters

My goal is that all below URI's should work https://rest/xyz?sort=name https://rest/xyz?Sort=name https://rest/xyz?filter=name=value https://rest/xyz?Filter=name=value To achieve this, I have created custom filter that overrides the…
akhi
  • 664
  • 2
  • 10
  • 23
1
2
3
86 87