spring-webflow

Url pattern to exclude javax.faces.resource from being invoked by servlet filter

。_饼干妹妹 提交于 2019-12-20 03:54:07
问题 I have created a servlet filter to handle session timeout and authentication. @WebFilter(urlPatterns={"/acc/*"}) public class ResourceAuthorizationFilter implements Filter { ... } The pages that I want to filter have a pattern like this: /acc/login-flow , /acc/profiles-flow . The filter gets called also for resources(css, js and images). How can I configure the urlPatterns to exclude from filtering these resources? EDIT1 Here are some urls that are filtered: http://localhost:8081/acme-0.0.1

Spring Webflow DataBinding to immutable objects via a constructor?

﹥>﹥吖頭↗ 提交于 2019-12-18 13:34:36
问题 Is there any way of using an immutable object as a model within a view-state in Spring webflow? I know Spring webflow generally tends towards setters for this kind of thing, but I was wondering if anyone knew of a custom DataBinder or WebDataBinder that could handle binding the data using a constructor? I'm also aware there's this (SPR-1488) JIRA task against the problem, which advocated direct field access. Do people advocate this way of doing things? To me it doesn't quite feel right.

not able to get the flow scope variable from one state transition to another state transition junit

倾然丶 夕夏残阳落幕 提交于 2019-12-18 09:44:17
问题 When I transit from view state to decision state or action state all the input set is lost while transitioning to another state. How to do I get the flow scope variable for decision state or action state on transitioning from view state to decision state and action state in junit ? In my flow definition right now I am in view state when I set the event Id as submit it moves to registerEnroll decision state where it needs flowScope.regform.loyaltyLookUp value. When I see the flow execution

Spring Webflow - How to Get List of FLOW IDs

徘徊边缘 提交于 2019-12-18 09:16:49
问题 What is the best way to get the full list of FLOW IDs generated by Spring Webflow? Here is my configuration: <webflow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices" base-path="/WEB-INF/pageFlows"> <webflow:flow-location-pattern value="/**/*-flow.xml"/> </webflow:flow-registry> [UPDATE 1] I should clarify that I want to do this in Java code, not by inspecting my configuration. [UPDATE 2] answer: requestContext.getActiveFlow().getApplicationContext() 回答1: List of

Ajax + Spring Webflow

旧巷老猫 提交于 2019-12-18 05:54:44
问题 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 needs for my application. However, I am having some trouble with this method and webflow and from what I can tell, there are very few examples available to work with. On a side note, I am not using a form or a select box. I thought I would mention

getting error missing a runtime dependency: java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileItem

拜拜、爱过 提交于 2019-12-17 21:09:39
问题 I am trying to setup Maven, JSF and Primefaces project. But when i run the project i get the following error com.sun.faces.config.ConfigurationException: Source Document: jar:file:/D:/Personal%20Work/eclipse%2032%20Bit/workspace/Java%20EE /Spring/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps /ch18_SpringWebFlowAndJSF/WEB-INF/lib/primefaces-3.5.jar!/META-INF/faces-config.xml Cause: Class 'org.primefaces.component.fileupload.FileUploadRenderer' is missing a runtime dependency:

webflow.xsd - Start state is missing. Add at least one state to the flow

空扰寡人 提交于 2019-12-14 02:58:22
问题 I am working with Spring Core 4.0.7 and Spring Web Flow 2.4.0 Using Spring Tool Suite I am able to create a Spring Web Flow Definition File For the <flow> tag it generates <?xml version="1.0" encoding="UTF-8"?> <flow xmlns="http://www.springframework.org/schema/webflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/webflow http://www.springframework.org/schema/webflow/spring-webflow-2.0.xsd"> Observe spring-webflow-2.0.xsd When

How to call server side action method just before submitting form to 3rd party url?

泄露秘密 提交于 2019-12-13 19:42:23
问题 Ok, I'm using Spring Webflow and I currently have a flow that involves two jsp pages (views), the second of which submits a form to a 3rd party system (payments). In my pay-flow.xml I have states such as these; <!-- Initial state, the jsp(view) gathers the number of items to purchase --> <view-state id="buy" view="credit/buy" model="credit"> <transition on="submit" to="createTrans" /> </view-state> <!-- State not tied to a jsp, saves the "credit" object to the database --> <action-state id=

Spring Webflow - deleting an item from a list?

血红的双手。 提交于 2019-12-13 14:51:08
问题 I'm using Webflow 2.3.2 in an application, and on one step the user can add/delete from a list in the bound model object (they simply return to the current step after the modification). For example my object might look like this: public class MyInfo implements Serializable { List<String> myList = new ArrayList<String>(); } Doing the "add" in webflow is no problem because I simply stick the new object on the end of the list, but for the "delete" I need to identify the element to delete. What I

Spring Webflow - decision-state vs action-state

耗尽温柔 提交于 2019-12-13 12:24:14
问题 I am using Spring WebFlow 2 and I want to know the diff of decision-state vs action-state. I am reading up and dont understand the diff of decision-state vs action-state. I understand that view-state will display a jsp for input but whats the diff of decision-state vs action-state? why should I use decision-state over a action-state? why should I use a action-state over a decision-state? Can someone shot some light on this 回答1: Generally, decision-state is used exclusively for a boolean