I ended up setting the destroy-method attribute in the bean definition and adding the respective method to the class. When the HTTP session is invalidated, the destroy-method will be invoked on your...
Type: Posts; User: jerkoch; Keyword(s):
I ended up setting the destroy-method attribute in the bean definition and adding the respective method to the class. When the HTTP session is invalidated, the destroy-method will be invoked on your...
Check out this thread: http://forum.springframework.org/showthread.php?t=38890
If you're using redirectOnPause (default), the redirect is considrered another request, so your request variables disappear. Just grab the request parameter in your transistion in the first state...
You need to put the value in single quotes:
<set attribute="output" scope="flash" value="'test123'" />
Did you ever figure out the issue? I'm seeing the same thing.
Currently, I'm checking in my .springBeans and .springWebflow to my SCM, which would work fine but the .springWebflow file contains references to the Eclipse project name in the <beans-config> tag. ...
If anyone cares, I was able to determine the end state by adding a flow execution listener and checking the state id on sessionEnded.
setFlowExecutionListener(new...
Using AbstractXmlFlowExecutionTests, is there anyway to verify the id of an end-state that a completed flow ended on? I can only seem to verify the flow ended using assertFlowExecutionEnded().
If you want to store the locale in the session, then you should be using the SessionLocaleResolver instead of the CookieLocaleResolver:
<bean id="localeResolver"...
You don't need to send the locale with every request. It will be stored for the duration of the session.
Hi Nicolas - Have a look at the countries sample that is part of the Spring distribution. You'll need the following:
<bean...
I'm running into problems while trying to perform some cleanup operations on sessionDestroyed in a HttpSessionListener. I've got the following code:
public void...
Here is my situation:
View A -> View B -> Action
When I'm in the SWF Action, and an error occurs while making a call to my business tier, then I need to go back to View A and show the error. ...
Right, that's what I've gathered pouring over this forum. My MultiAction *is* very thin. It just groups a bunch of methods that make a single call to the service tier, then inspect the response and...
I've searched for a solution to the following problem, but was suprised to find nothing. Upon submission of my form, I bindAndValidate and everything passes. I then transition to an action-state...
The is the JSP:
<form>
<select name="locale" size="1" onChange="javascript:document.forms[0].submit();">
<option value="null">Select</option>
<option value="en">English</option>
<option...
Another update: I fixed my LocaleChangeInterceptor problem. Now everything seems to work without the hidden eventId in the first form. Actually, it even works without the hidden flowExecutionKey....
Good point, if I keep my dropdown named "locale", then wouldn't I need to put the "_eventId_language" as a hidden field in my first form? Otherwise, how would SWF know how to transition? I'm...
OK, I think I solved my problem. I ended up putting two separate forms on the page. One for the dropdown language selection, and the other for the nav buttons. Both forms contain the hidden...
Thanks for the suggestions.
I'm not using continuations, so If I do ask you suggest and name the dropdown "_eventId_language" (at least I think thats what you meant), my form will always be...
Can anyone recommend how to deal with a page using SWF when there is a language selection dropdown? When the language is selected, I want to post the 'locale' parameter so the LocaleChangeInterceptor...