spring-webflow-2

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

Webflow Flow Location By URI?

人盡茶涼 提交于 2019-12-13 03:58:52
问题 I have a Spring MVC application that currently uses a SimpleUrlHandlerMapping to integrate several webflows. The bean definition looks something like this: <bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping"> <property name="mappings"> <props> <prop key="/process1/reservation.html">flowController</prop> <prop key="/process2/reservation.html">flowController</prop> </props> </property> <property name="order" value="0"/> <property name="alwaysUseFullPath" value="true" /

Barebonds Hello World Example with Security

五迷三道 提交于 2019-12-12 05:27:34
问题 I am trying to setup a Barebonds Hello World Example with Security. But I keep getting a error. Here is my web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>MyFlow</display-name>

Issue with Spring Security, Spring Webflow, file uploads and UTF-8

☆樱花仙子☆ 提交于 2019-12-12 05:19:13
问题 I have a problem very similar to the one described here: File Upload using Spring WebFlow 2.4.0, parameter not binded, but that one didn't mention anything about UTF-8 issues. I'm using Spring Framework 4.1.6, Spring Security 4.0.2 and Spring Webflow 2.4.2. It revolves around StandardServletMultipartResolver vs. CommonsMultipartResolver as far as I can tell, but I'm not sure. If I use CommonsMultipartResolver I can upload files on any page except for Webflow pages fine and UTF-8 encoding

how to store value returned by a business service in a variable in spring web flow?

风格不统一 提交于 2019-12-12 04:05:56
问题 Situation : I am developing a spring mvc web flow app , in that i have two tables customer and customerAdress and two corresponding models : customerModel and customerAdressModel , now following is my flow.xml : <var name="customer" class="com.model.Customer"/> <var name="customerAdress" class="com.model.CustomerAdress"/> <var name="id"> <view-state id="customer" view="customerView.jsp" model="customer"> <transition on="next" to="customerAdress"/> </view-state> <view-state id="customerAdress"

Spring webflow partial validation

半世苍凉 提交于 2019-12-12 04:04:43
问题 I am trying to implement partial validation in Spring Webflow 2.4. According to their reference manual the validation should be done very simply using groups: @NotNull @Size(min = 2, max = 30, groups = State1.class) private String name; In my understanding the State1 should be the ID of view-state in which the model should be validated. So the definition of this view state in flow.xml would look like this: <view-state id="state1" model="modelObject"/> I was trying to define the State1 as an

Getting Spring Web Flow to work with IE 7 forms

可紊 提交于 2019-12-12 01:46:29
问题 This is a continuation of this question, refocused after some debugging on Spring Web Flow and the processing of events in Spring Web Flow. I've got a problem with Spring Web Flow and Internet Explorer 7, and also IE 11 in "compatibility mode." I've verified this problem, I just don't know how to fix it. I have a Web Flow form with multiple buttons on it which are all wired using a Javascript onclick() handler because they're all type='button' and not type='submit' : <button id=

JSF EL i18n in CSS files

回眸只為那壹抹淺笑 提交于 2019-12-12 01:26:32
问题 In my html pages I use the Spring message bean like so: #{ms.my_text_label} ms is of type ReloadableMessageSourceBundle and will translate my_text_label by looking in some resource bundle files. Can I make it possible to use this in my CSS files as well? 回答1: Disclaimer: I'm ignoring the Spring WebFlow part in the question and do as if the JSF project doesn't use any Spring artifacts. You can just use EL in CSS files the usual way if you load the CSS file via <h:outputStylesheet> instead of

Spring Webflow 2 and bookmarkable URLs

此生再无相见时 提交于 2019-12-11 13:44:13
问题 Currently due to the Post/Redirect/Get pattern all flow urls are something like <site_url>/flow_name?execution=? and input GET parameters are not preserved. Thus the users can't copy the url, or bookmark it. Any suggestions how could this be done neatly ? 回答1: We can bookmark a SWF based application's URL by customising FlowHandlerAdapter of SWF API. Here is a sample: My SWF configuration file would have: <bean id="flowController" class="org.springframework.webflow.mvc.servlet.FlowController"

How to use Spring Webflow popup=“true” with Primefaces?

纵饮孤独 提交于 2019-12-11 10:45:36
问题 Until now we were using Spring Webflow 2.3, which brought the "sf" namespace and Spring.js, which could be used to display view-states in a popup. Webflow 2.4 deprecated Spring.js and removed the taglib with the following statement: Previous releases of Spring Web Flow shipped with a component library which provided Ajax and client-side validation capabilities for JSF 1.2 environments. Applications using these components will need to switch to a 3rd party JSF component library such as