spring-webflow

Spring Webflow - Action Execution Exception

我怕爱的太早我们不能终老 提交于 2019-12-12 04:20:07
问题 Please refer to this question I asked earlier. Calling a function from Spring Webflow to store in Database(MySQL) I edited the removeAllCartItemsCart method to this public void removeAllCartItemsCart(Cart cart) { List<CartItem> cartItems = cart.getCartItems(); Session session = sessionFactory.getCurrentSession(); int cusid=cart.getCustomer().getCustomerId(); for (CartItem item : cartItems) { int pid=item.getProduct().getProductId(); Query query=session.createQuery("from ProcessOrder where

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 Web Flow validator not found

。_饼干妹妹 提交于 2019-12-12 02:26:17
问题 I am trying to do form validation in Spring Web Flow. For this I am using a validator class, which is named after the model. Just like it is stated in the documentation. The validator gets instantiated as a bean but is never called during validation. Any pointers on that issue? flow config <?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

How implement the interface FlowExecutionExceptionHandler

守給你的承諾、 提交于 2019-12-12 01:37:33
问题 I'm trying to customize my application to handle an exception throwed by webflow, the exception is SpelEvaluationException an especialization of EvaluationException . According with the documentation I implemented the interface FlowExecutionExceptionHandler and stayed like below: @Named public class PerfilExceptionHandler implements FlowExecutionExceptionHandler { private static final Logger LOGGER = LoggerFactory.getLogger(PerfilExceptionHandler.class); @Override public boolean canHandle

Storing the state of the flow in Spring web-flow

喜夏-厌秋 提交于 2019-12-11 21:18:22
问题 I have this requirement for web-application wherein a user submits application for certain benefits by entering a set of his personal information. Every user application has an 'AppId'. So lets say a user with AppId 123 is within a flow and exits at a particular state. Next time when he logs in with AppId 123, he should be able to continue from where he left. How can we implement using Spring web-flow 2.3? Does SWF 2.3 has some sort of its own database like lets say a jBPM has? 回答1: Spring

How to invalidate the session in spring web flow?

无人久伴 提交于 2019-12-11 19:53:47
问题 when user login one side and another user login from same password and user name (from another machine ) ,at that time first user logout from automatically on every time when second user invalidate the first session. I am using the server side session , i have login flag in data base user is already login or not .any idea friends 回答1: It is better if you try with Spring Security Single Sign-On implementation. This link may be useful to you http://www.mkyong.com/tutorials/spring-security

Not able to create multiple instances of an input set in flowscope

一世执手 提交于 2019-12-11 18:06:33
问题 I have and input type and it's value is set in flowScope. <input name="myItem" required="false" value="flowScope.myItem"/> I am creating a list of MyOtherItem and sending it to a controller method like this: <evaluate expression="myController.save(myOtherItemDataModel.selectedRows,myItem)" result="flowScope.myItem"/> Inside MyController I have method save in which I want to save multiple instances of myItem by getting data from myOtherItemList. public MyItem save(MyOtherItem[] myOtherItem

Spring security redirections inside and outside of a webflow

时光总嘲笑我的痴心妄想 提交于 2019-12-11 14:37:33
问题 I'm using for first time spring security (3.2.0.RELEASE) and spring webflow (2.4.0.RC1). I have some pages where user can login (through a modal window). This logins should not redirect user, instead modal window should be closed and actual page is refreshed in order to show the name of logged user. In addition, in my web there is a webflow, in this webflow is where an order is created. As a last view-state the user must be logged in order to save the order. So if user is not logged at this

URL in popup JSF

不羁岁月 提交于 2019-12-11 13:47:32
问题 i have following scenario first i need to send request to back end,that will return a URL..i need to open the URL in the popup.. i am confused for this i have tried opening popup both using the prime-faces and web flow but i don't have clearly how to open popup using new url each time we are using JSF, prime faces and spring webflow 回答1: Use JavaScript's window.open function. E.g. <h:form> <h:commandButton value="Submit" action="#{bean.submit}"> <f:ajax render="popup" /> </h:commandButton> <h

How do I make a Textarea field with Spring Webflow and Dojo(dijit)

放肆的年华 提交于 2019-12-11 13:26:53
问题 I been trying to find out how to make a textarea field in my Spring Webflow project we are using Dojo (dijit) for the forms. can someone please help. below is my code! <td valign="top"><form:input path="bio" class="value" /> <script type="text/javascript"> Spring.addDecoration(new Spring.ElementDecoration({ elementId : "name", widgetType : "dijit.form.ValidationTextBox", widgetAttrs : { promptMessage : "Please enter your name from 2 to 10 characters", invalidMessage : "A 2 to 10 characters