The second maintenance release in the Spring 3.2.x line is now available via Maven Central, the SpringSource repository, or for direct download from our community download page. This release includes...
Type: Posts; User: Phil Webb; Keyword(s):
The second maintenance release in the Spring 3.2.x line is now available via Maven Central, the SpringSource repository, or for direct download from our community download page. This release includes...
I have raised a new JIRA issue for this [1]. Could you please update the JIRA with a full stack trace? You might also want to watch the issue for updates.
Cheers.
Phil.
[1]...
Hi Tumaini,
I am not aware of any projects that mix Web Flow and WaveMaker. The two applications have quite different goals and would probably be hard to combine in a single application. WaveMaker...
Take a look at https://github.com/philwebb/springfaces/ it might provide the type of integration that you are looking for.
In my opinion JSF took a major leap forward with version 2.0 and contrary to Grzegorz I have found may tasks easier to achieve by using pre-built JSF components. I would recommend taking a look at...
This project has now moved to here:
https://github.com/springtestdbunit
Version 1.0.0 should be released to Maven central in the next few days.
I have added some comments to the bug report.
You might be able to use the FlowExecutionListener interface to do this. You could implement a sessionStarting method that looks to see if the flowSession has a parent flow and throw an exception if...
I recently blogged about a custom component to work with Spring MessageSource beans:...
You could take a look at the source code for the webflow reference application. The later version uses PrimeFaces components:
...
You might want to look into JSR 303 and the Hibernate Validator project, I think it plays pretty well with JSF and WebFlow these days.
The
org.springframework.webflow.execution.RequestContextHolder class may help (make sure you use the one in the webflow package, not the MVC class with the same name)
MutableAttributeMap...
I think that the source forge repository is no longer maintained.
Try:
https://src.springframework.org/svn/spring-webflow/tags/spring-webflow-2.0.3.RELEASE/
Phil.
You may be able to redirect manually without using an end state
<view-state id="reviewCart">
<transition on="pay">
<evaluate expression="payAction" />
</transition>...
Take a look at FlowExecutionListener, you may be able to use the viewRendering and viewRendered methods to track how long it takes to load a view and to record the viewState that is being rendered.
...
Try leaving the end-state in the subflow without the redirect and instead do the redirect in the calling flow
SubFlow:
<end-state id="dossierrecapbeneficiaire"/>
Calling Flow:
I don't think there is an easy way to extend the webflow schema. You can however use an action state and call an expression:
<action-state id="flowRouter">
<evaluate...
For WebFlow 2.0 you can set a limit to the number of active conversation using the max-executions attribute on flow-execution-repository...
Can you use the on-exception attribute on the transition?
....
public Event someAction(RequestContext context) throws SomeExceptionObjectFromServiceLayer {
...
}
...
Try casting the viewState to TransitionableState to see if you can access the transition definitions. Also you could consider using an attribute on the transition rather than a suffix:
...
Take a look at the FlowUrlHandler interface.
I believe that snapshots are taken on state exit.
ViewState.exit
-> ViewState.updateHistory
-> RequestControlContext.updateCurrentFlowExecutionSnapshot
->...
You need to register the handler as a spring bean then make reference to it from your flow XML using the "exception-handler" element.
<flow>
...
<exception-handler...
currentUser is a special EL variable that gives access to the currently authenticated Principal.
...
I think that you can use requestParameters for this purpose
See section 3.5 of the reference docs
...