spring-webflow

trying to add JSF to my Spring WebFlow Project and now my WebFlow will not working

≡放荡痞女 提交于 2019-12-08 07:54:58
问题 I am trying to add some JSF to my Spring WebFlow project and I made some changes trying to following the details at: http://static.springsource.org/spring-webflow/docs/2.3.x/reference/html/ch13s07.html but now my webflow project will not work. Here is my old flow.xml file that worked: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flow="http://www.springframework.org/schema/webflow

how do i show error/info/fatal messages in jsp when i using spring-webflow with POJO action?

妖精的绣舞 提交于 2019-12-08 07:47:02
问题 i am using spring-mvc(3.2.4) and spring-webflow(2.3.2) here. i define a flow like this: <flow> <decision-state id="check"> <if test="signupFlowAction.checkPrecondition(messageContext)" then="firstState" else="error" /> </decision-state> <view-state id="firstState"> ... </view-state> <view-state id="error" view="error/bad-thing-happens"> ... </view-state> i want to check some business preconditions when the flow startup, so i using a POJO to do so. public boolean checkPrecondition

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

二次信任 提交于 2019-12-07 13:08:39
问题 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

Use Spring Web Flow without state on the server

梦想的初衷 提交于 2019-12-07 06:47:41
问题 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

Primefaces: Exclude column from row selection in p:dataTable

試著忘記壹切 提交于 2019-12-07 02:49:25
问题 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

handle Exception in Spring Web Flow

爱⌒轻易说出口 提交于 2019-12-06 12:48:11
问题 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" /> 回答1: That declarative Exception handling does not seem to work for internal Web Flow exceptions. For this particular case, we had to implement a custom

How can I serve binary content from a JSF/Webflow app?

心不动则不痛 提交于 2019-12-06 11:14:15
问题 I have a JSF 1.2/Spring Web flow 2.0.7 app that need to serve binary content (an image). This content is fetched from a web service (along with some other data) as a Base64-encoded string, and ends up in the bean together with the rest of the data. How can I get the image to show on my web page? Note: No, there is no way to make the web service stream the data directly, or even to get the binary data out of the web service without all the other stuff. 回答1: You want to end up with that image

Database connections not being closed with jpaFlowExecutionListener

▼魔方 西西 提交于 2019-12-06 07:01:58
问题 I'm using Spring Web Flow to build an application. I am making use of the Flow Managed Persistence Context so the entity manager is 'kept open' during the execution of my flow and I can access lazy loaded properties (similar to OpenEntityManagerInViewFilter or OpenSessionInViewFilter for Spring MVC). When I use this, every time I submit a form, the number of active database connections increases, if I don't use the FMPC, I have no problems with the number of open connections). I'm working

How to pass parameters to spring webflow

谁都会走 提交于 2019-12-06 06:00:58
问题 I am working on spring webflows. I have two webflows in my application, one to add a person details and one to modify the person details. Both flows are working fine. Now I would like to pass parameter(s) to my modify flow and access it, so that I can preselect some of the values based on the passed parameter. How can I achieve it for below mentioned scenarios? From the Add flow end state. From outside the flow i.e from anywhere in the application except add flow. 回答1: I figured it out. In

What is setting Cache-Control no-cache, no-store in my deployment?

只愿长相守 提交于 2019-12-06 04:44:54
问题 I have an issue that my application deployment always returns response headers with: Cache-Control: no-cache Cache-Control: no-store Expires:Thu, 01 Jan 1970 00:00:00 GMT Pragma:no-cache I'm using: Spring 3.1.2.RELEASE Primefaces JSF 3.4.1 Spring Webflow 2.3.0.RELEASE JBoss AS 7.0.1 I've tried nearly every solution on the application side I could find: Configuring the WebContentInterceptor (tried various permutations of it) Right out of the box cache-control header filter? Writing a custom