spring-webflow

Spring Web Flow Preventing Back Button Use

此生再无相见时 提交于 2019-12-06 04:43:22
问题 So I'm using Spring Web Flow on a project and want to make use of the history="discard" and history="invalidate" attributes on elements. I have placed those attributes where I want them, however, when I try to test whether or not they work by navigating to a view after the history attribute is run on the transition, it directs me to an exception page. org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution

Grails Webflow - keeping things *out* of flow scope

ぃ、小莉子 提交于 2019-12-06 04:14:37
I'm missing something.... I have a Grails webflow that looks like this:- def childFlow = { start { action { def targets = [] Target.list().each {target -> targets.add(new TargetCommand(name: target.name, id: target.id)) } log.debug "targets are $targets" [children: targets] } on('success').to('selectChild') } ... TargetCommand is serializable. but I get this error:- Caused by: java.io.NotSerializableException: com.nerderg.groupie.donate.Target For some reason the "target" object that is inside the Target.list().each {} closure is getting put into the flow scope, and I can't figure out how to

Grails web flow

喜夏-厌秋 提交于 2019-12-06 03:35:58
Is there any way to pass model data to a view state? Consider the following example view state: class BookController { def shoppingCartFlow = { showProducts { on("checkout").to "enterPersonalDetails" on("continueShopping").to "displayCatalogue" } } } If I want to pass the data model [products: Product.list()] to showProducts.gsp, is there any way to do this apart from preceding the view state with an action state that stores the model in flow scope? Thanks, Don Hmm, it's been a bit since I did a flow, and your example is simplistic (just for being an example's sake, I hope). What your missing

java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.isReleased(FacesContext.java:609)

喜欢而已 提交于 2019-12-05 20:54:58
I am integrating SWF 2.2.1,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0M1. I am able to hit my first page mentioned in Spring web-flow xml, but getting following error. com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException SEVERE: Error Rendering View[/WEB-INF/flows/AccSrch/searchAccIns.xhtml] java.lang.UnsupportedOperationException at javax.faces.context.FacesContext.isReleased(FacesContext.java:609) at com.sun.faces.context.PartialViewContextImpl.updateFacesContext(PartialViewContextImpl.java:468) at com.sun.faces.context.PartialViewContextImpl

Spring Web Flow 3 Development Abandoned?

夙愿已清 提交于 2019-12-05 12:48:33
问题 Does anyone have any information on Spring Web Flow 3 status? Here are a few relevant links that support my sense that springsource has essentially abandoned the project: 1)Official roadmap indicates they are missing milestones by over a year now with no update to the roadmap. 2)Forum thread filled with these questions ignored by Keith Donald and Spring team. 3)Official Download page says the latest release is 2.2.1 but is actually 2.3 so that is not even being kept up-to-date anymore. While

Spring Web Flow: How to call static method from <evaluate />?

孤人 提交于 2019-12-05 10:36:18
I need to call static method of org.hibernate.Hibernate class. How to do that in element of flow ? You can use the following Spring EL construct to evaluate static methods: <evaluate expression="T(org.hibernate.Hibernate).initialize(yourObject)"/> See the appropriate Spring EL reference part: http://static.springsource.org/spring/docs/3.2.x/spring-framework-reference/html/expressions.html#expressions-types spring-webflow 2 uses OGNL expressions. OGNL allows for static referencing of fields and methods. To utilize it you would want to use the '@' notations. First you reference the class (with

Use Spring Web Flow without state on the server

两盒软妹~` 提交于 2019-12-05 10:26:40
I'm reading the Spring Web Flow chapter in the book Pro Spring MVC. Unfortunately there's no explicit information, where the state during a flow execution is persisted. I assume it is saved in the JVM Heap and associated with the session. Now HTTP is a stateless protocol (REST...) and I'd like to use Spring Web Flow without saving state on the server (besides the one and only state that a session might be authenticated). One strategy is to send all parameters of the entire flow with every HTTP request of the flow (hidden input) and thus accumulating all necessary parameters until the flow has

Primefaces: Exclude column from row selection in p:dataTable

偶尔善良 提交于 2019-12-05 05:38:45
I've got problem with p:dataTable and excluding a column from single row selection. I have 4 columns in my dataTable. First 3 are needed to display fileId, fileName and uploadDate. In 4th column there is a command button for each row that start action of file processing. But also there is row selection (with ajax action on event) that navigates to file details page. Now, when I click on the anywhere on the row (including the button) it navigates me to details page. There's my current code: <h:form> <p:dataTable id="billingFiles" value="#{billingFiles}" var="billingFile" rowKey="#{billingFile

Accessing flash attributes in Spring Web flow

╄→гoц情女王★ 提交于 2019-12-04 20:42:55
I use, redirectAttributes.addFlashAttribute("msg","Level complete") to access message on the redirected jsp. How can I use this redirect attribute when I am redirecting to a Webflow ? When flash attribute is used to send data from one controller to a webflow we have to bind redirected flash attribute (from controller) to the response JSP page of the webflow. For this purpose we can maintain a backend FormAction class to bind the value to any scope of webflow. In flow xml we can can call custom method on entry of a view state. Custom Method of FormAction class would be like public void

handle Exception in Spring Web Flow

守給你的承諾、 提交于 2019-12-04 19:03:09
Hello Friends Iam trying to handle org.springframework.webflow.execution.repository.snapshot.SnapshotNotFoundException this exception but iam failed to do so. In this way i handle SnapshotNotFoundException. <transition on-exception="org.springframework.webflow.execution.repository.snapshot.SnapshotNotFoundException" to="exceptionHandler" /> That declarative Exception handling does not seem to work for internal Web Flow exceptions. For this particular case, we had to implement a custom FlowHandler . handleException() . Something like: public class CustomFlowHandler extends AbstractFlowHandler {