spring-webflow

Spring validation errors tag not working completely with webflow + portlet

我的未来我决定 提交于 2019-12-11 11:31:36
问题 I have a small project (using Spring 4.2.0, Spring Webflow 2.4.2, Hibernate validator 5.2.2) that is working as expected in the servlet world, but after having transformed it to a portlet, the validation feedback in JSP doesn't work fully as expected anymore. For a form that looks like this: <form:form modelAttribute="person" action="${flowExecutionUrl}"> <form:input path="voornaam"/> .... </form:form> This still works in the portlet (so I get at least the confirmation that my validation

SWF in JSF 2.2 causes java.lang.NullPointerException at com.sun.faces.application.NavigationHandlerImpl.determineViewFromActionOutcome

两盒软妹~` 提交于 2019-12-11 09:16:49
问题 I've a JSF 2.2 + Spring WebFlow application. When the below command button is pressed <h:commandButton value="Aggiungi" action="#{pageController.modifica}" /> the following action is invoked public String modifica() { // ... return "gest"; } and the following navigation case needs to be resolved <navigation-case> <from-action>#{pageController.modifica}</from-action> <from-outcome>gest</from-outcome> <to-view-id>/newxhtml.xhtml</to-view-id> <redirect /> </navigation-case> the following

Issue with Springs Web Flow. Form Submit Values are Right, AjaxEventDecoration is NOT

本小妞迷上赌 提交于 2019-12-11 08:36:30
问题 I am having a issue with Springs Web Flow. If the user clicks on the form submit button I will have the RIGHT values in my bean. Example the sex field will be MALE or FEMALE. But I then added a AjaxEventDecoration to do a submit on change of the sex dropdown box which is really a form:select and in the bean I will get the value "sex" which is the elementId. Below is my code can you please review it and let me know what you think... I need to fix this value ASAP... <%@ taglib prefix="c" uri=

Spring Web Flow and Spring MVC URL 404

瘦欲@ 提交于 2019-12-11 08:16:47
问题 I am currently using Spring MVC 4.0.5 and would like to use Spring Web Flow for some process oriented pages. However, I think there is still some problem with my configuration. In the server logs: 2014-09-15 20:54:49,280 [localhost-startStop-1] DEBUG org.springframework.webflow.definition.registry.FlowDefinitionRegistryImpl - Registering flow definition 'ServletContext resource [/WEB-INF/flows/registration/registration-flow.xml]' under id 'registration' However, when accessing it, the log

Spring webflow: how to keep track of persisted entity ids?

杀马特。学长 韩版系。学妹 提交于 2019-12-11 08:02:55
问题 I'm working on a webflow (SWF2). The entities are generated using Roo. One of the webflow views, multi-instance.jspx, may be called multiple times to allow for multiple, persisted instances of the same entity (MyClass). I'd like to keep a list of those persisted entities so that I can reference them on a later point in the flow. So far, I've tried the following. A simplified version of my flow.xml looks like this: <on-start> <evaluate expression="new java.util.ArrayList()" result="flowScope

Reason to integrate Spring Web-flow with Spring MVC

只愿长相守 提交于 2019-12-11 06:44:14
问题 Why(In what scenarios) do we need to integrate Spring Webflow with Spring MVC? Both these frameworks are used to create web-app and I do not see any point why we would integrate them. I would appreciate if someone could clarify me about it. 回答1: We combine both. Web Flow for the multi-step activities, where it doesn't make sense to jump into the middle of a process, and plain-MVC Controllers for the single-step activities. Things you might bookmark individually. For example, an appointment

Rendering only a fragment of the page

风格不统一 提交于 2019-12-11 03:42:32
问题 I need to implement a web application with a Menu (Tab View) on top where each tab renders the content area without rendering the whole page. How can I do it in a modular way? I want each content area to be a flow. 回答1: You can try this: <h:form id="topMenu"> <f:ajax render="content"> <h:commandLink actionListener="#{mrBean.openPage('About.xhtml')}" value="About Us" /> <h:commandLink actionListener="#{mrBean.openPage('Contact.xhtml')}" value="Contact Us" /> </f:ajax> </h:form> <h:panelGroup

spring webflow, evaluate expression ignored in transition

▼魔方 西西 提交于 2019-12-11 01:24:14
问题 I have a flow definition as flows <view-state id="view1" view="/jsp/view1.xhtml"> <transition on="login" to="view1" > <evaluate expression="'test1'" result="viewScope.t1"/> <evaluate expression="'test2'" result="viewScope.t2"/> </transition> </view-state> View1.xhtml: ${t1}<br/> ${t2} In view1.xhtml, I printed the two variables t1 and t2, but only 'test1' is printed. The second expression is ignored in transition. Why this happened? 回答1: http://static.springsource.org/spring-webflow/docs/2.3

StackOverflowError in Seam / Spring WebFlow Application

佐手、 提交于 2019-12-10 20:31:49
问题 We are gradually replacing Seam components with Spring-MVC and Spring-Webflow. Running JMeter-tests the logs get cluttered with StackOverFlowErrors after a couple of hours: javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter

How do I pass model data beween a view state and action state in Spring Web Flow 2

好久不见. 提交于 2019-12-10 19:56:08
问题 In the Web Flow below I bind form data to a flow variable (lifeCycleForm) on a submit event in the view state. I have verified that the name, label and description properties are all populated as expected. However, when the expression in the action state is evaluated all three properties are null. My form bean is serializable and I am just using simple string properties. What I am doing wrong? I am pretty new to Spring WebFlow so I might have missed something obvious. <var name="lifeCycleForm