spring-webflow

Inner UI:repeat does not bind to a bean in a nested UI:repeat

守給你的承諾、 提交于 2019-12-13 09:11:30
问题 HI, I am using nested ui:repeats to display my data. the outer UI:repeat works and binds to bean just fine, but the inner does not bind to the bean. In sumary, I would like to display a list of people where each person has a name and a list of email addresses. Here is my code: <ui:repeat value="#{myFamily.personList}" var="eachPerson" > <tr:panelCaptionGroup captionText="#{eachPerson.name}" styleClass="fullWidth"> <h:inputText value="#{eachPerson.age}" styleClass="fullWidth" /> <ui:repeat

Hidden class creates commas in spring webflow

送分小仙女□ 提交于 2019-12-13 08:50:36
问题 I am displaying a list of items using spring webflow. Each item has an edit button; clicking the button opens up a modal dialog. If there are 12 items in the list, I see 12 commas generated in the form path. How can I avoid generation of commas? <c:forEach var="note" items="${model.modelname}"> //create a click button for each item //each click opens up a modal <div id="modal" class="hidden"> <div class="modal-body-content"> <form:textarea path="textPath" /> </div> </div> </c:forEach> 回答1: It

How to keep service's metaClass from being overridden

时间秒杀一切 提交于 2019-12-13 07:43:33
问题 I'm trying to mock a call to an outside service in an integration test, the service is used in a grails webflow. The service isn't in flow or conversation scope, but is added via dependency injection see here. I've managed to figure out a way to override a service via replacing it's metaClass using ExpandoMetaClass. The changes only work when the test is ran alone, if another test that uses that same service is ran before this test, the metaClass changes are gone. Part that overrides the

Spring webflow externalRedirect restarting same flow

倖福魔咒の 提交于 2019-12-13 06:27:21
问题 I am using CAS and just updated to 3.5.1 from 3.4.8. There have been a thousand changes that I think I have handled most of. However, the externalRedirect upon completion seems to be broken somehow. It just loops back to the start of the login-webflow. How could this happen? This is the end state that is getting reached: <!-- The "redirect" end state allows CAS to properly end the workflow while still redirecting the user back to the service required. --> <end-state id="redirectView" view=

Unexpected survival of a @ViewScoped bean

孤者浪人 提交于 2019-12-13 04:06:50
问题 I'm developing a view which consists of an object creation form and the existing object list, creablocco.xhtml : <?xml version="1.0"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:ace="http://www.icefaces.org/icefaces/components" xmlns:ice="http://www.icesoft.com/icefaces/component" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun

Updated Spring 3.1 project to hibernate4 now getting No Session found for current thread

喜你入骨 提交于 2019-12-13 04:05:22
问题 I had to update my Spring WebFlow project to Spring 3.1 and Hibernate 4 do to trying to get maven to work. It looks like everything is working now but at the part of the project going to do a database read I get the following error: org.hibernate.HibernateException: No Session found for current thread org.springframework.orm.hibernate4.SpringSessionContext.currentSession(SpringSessionContext.java:97) I dont know why I did not get this error in hibernate3 but can someone please tell me how to

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" /

Trying to get JSF(Faces) working within Spring WebFlow

不问归期 提交于 2019-12-13 00:34:26
问题 I been trying to add some JSF(Face) code into my Spring Webflow project but I am getting the following error: java.lang.IllegalStateException: FacesContext has not been initialized within the current Web Flow request. Check the configuration for your <webflow:flow-executor>. For JSF you will need FlowFacesContextLifecycleListener configured as one of its flow execution listeners. Here is my flow.xml file <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org

Spring web flow can't resolve service bean?

最后都变了- 提交于 2019-12-12 19:13:09
问题 I have got following problem. I defined following service class package godziszewski.patryk.ElectronicsStore.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import godziszewski.patryk.ElectronicsStore.domain.Cart; import godziszewski.patryk.ElectronicsStore.domain.repository.CartRepository; import godziszewski.patryk.ElectronicsStore.exception.InvalidCartException; import godziszewski.patryk.ElectronicsStore.service

Error creating bean with name : Scope 'request' is not active for the current thread

无人久伴 提交于 2019-12-12 14:34:21
问题 I have integrated SWF 2.2.1,Primefaces 2.2.1,JSF 2,Spring Security 3,Spring 3.1.0M1I and EhCache and AspectJ and Castor. I have defined beans for castor in my app-config.xml like <bean id="oXMapper" class="com.abc.xyz.util.OXMapper"> <property name="unmarshaller" ref="unmarshaller" /> <property name="marshaller" ref="marshaller" /> <property name="acordRequest" ref="acordRequest" /> <property name="acordResponse" ref="acordResponse" /> </bean> <bean id="unmarshaller" class="org