spring-webflow

Can i use Spring on GAE?

被刻印的时光 ゝ 提交于 2019-12-04 18:09:42
问题 Can i use Spring Webflow/MVC and Spring Security and Hibernate on Google App Engine? Is there a list/summary of java frameworks that can be used on the GAE? 回答1: See at this link a list of frameworks that run on the JVM to see if the one you want is supported or not 回答2: Will it Play In Java lists frameworks, languages and libraries that work (or not) in Google App Engine. At present, the information listed is: Spring MVC Version 2.5.6 Status COMPATIBLE To see Spring's MVC framework running

How can I serve binary content from a JSF/Webflow app?

痞子三分冷 提交于 2019-12-04 17:43:09
I have a JSF 1.2/Spring Web flow 2.0.7 app that need to serve binary content (an image). This content is fetched from a web service (along with some other data) as a Base64-encoded string, and ends up in the bean together with the rest of the data. How can I get the image to show on my web page? Note: No, there is no way to make the web service stream the data directly, or even to get the binary data out of the web service without all the other stuff. You want to end up with that image in a <h:graphicImage> component, right? In theory, you could use the data URI format for this. <h

Spring Web Flow - How can I set up unit test with values already in conversationScope?

主宰稳场 提交于 2019-12-04 13:44:29
问题 I am working on a project using Spring Web Flow 2.0. I am trying to unit test a flow that begins with a decision state. The decision state checks the value of an object that is on the conversationScope . I cannot figure out how to insert a value into the conversationScope for the unit test. I have tried: getConversationScope().put("someName", value); MockExternalContext context = new MockExternalContext(); startFlow(context); However, it seems that when I call startFlow(context) the value is

Collection/List property won't bind or update on form submit

不问归期 提交于 2019-12-04 11:45:47
So I have set up a wizard interface with spring web flow that gradually populates a single form object/model. It works fine for the first few steps that have to populate single String or primitive properties and a String array (from a checkbox interface). Then I have a List<String> property. It renders properly as multiple textboxes with correct initialized values. But when I edit the textboxes on the browser and submit, the values do not take effect on the form bean. It still has the initial values. Below is the detailed set-up: Web flow on-start which creates the bean: <on-start> <evaluate

How to pass parameters to spring webflow

 ̄綄美尐妖づ 提交于 2019-12-04 11:06:29
I am working on spring webflows. I have two webflows in my application, one to add a person details and one to modify the person details. Both flows are working fine. Now I would like to pass parameter(s) to my modify flow and access it, so that I can preselect some of the values based on the passed parameter. How can I achieve it for below mentioned scenarios? From the Add flow end state. From outside the flow i.e from anywhere in the application except add flow. I figured it out. In the end it was very simple and i just had to pass the parameters in url and get the parameters that I pass

Spring Web Flow Preventing Back Button Use

一曲冷凌霜 提交于 2019-12-04 10:27:30
So I'm using Spring Web Flow on a project and want to make use of the history="discard" and history="invalidate" attributes on elements. I have placed those attributes where I want them, however, when I try to test whether or not they work by navigating to a view after the history attribute is run on the transition, it directs me to an exception page. org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.repository.FlowExecutionRestorationFailureException: A problem occurred restoring the flow execution with

What is setting Cache-Control no-cache, no-store in my deployment?

我与影子孤独终老i 提交于 2019-12-04 09:28:22
I have an issue that my application deployment always returns response headers with: Cache-Control: no-cache Cache-Control: no-store Expires:Thu, 01 Jan 1970 00:00:00 GMT Pragma:no-cache I'm using: Spring 3.1.2.RELEASE Primefaces JSF 3.4.1 Spring Webflow 2.3.0.RELEASE JBoss AS 7.0.1 I've tried nearly every solution on the application side I could find: Configuring the WebContentInterceptor (tried various permutations of it) Right out of the box cache-control header filter? Writing a custom interceptor that adds different Cache-Control header (tested with Cache-Control: private) Writing a

Case-insensitive query string request parameters

假装没事ソ 提交于 2019-12-04 05:08:54
My goal is that all below URI's should work https://rest/xyz? sort =name https://rest/xyz? Sort =name https://rest/xyz? filter =name=value https://rest/xyz? Filter =name=value To achieve this, I have created custom filter that overrides the HttpServletRequest that is passed to the FilterChain. Below is the link for this approach: http://forum.springsource.org/archive/index.php/t-87433.html My code: import java.io.IOException; import java.util.Map; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import

Bookmarkable URL in JSF application - Trying to use Spring Webflow and JSF . Any suggestions?

一个人想着一个人 提交于 2019-12-04 04:37:15
问题 Our application is JSF , hibernate & Spring. Currently the url is in following format http://www.skill-guru.com/skill/login/testDetails.faces?testId=62&testName=PMP-Certification-practice-test We want a clean url like http://www.skill-guru.com/urltitle?some parameter One of the ways we could do this is through integration with Spring webflow with JSF. Any other suggestions ? We are trying Spring webflow 1.0 with JSF 2.0 but that does not seem to work. 回答1: PrettyFaces provides beautiful URLs

How to send parameter to fileUploadListener in PrimeFaces fileUpload

≯℡__Kan透↙ 提交于 2019-12-04 03:30:59
When I create a model I would like to save images for a model. I am using PrimeFaces fileUpload component. When I save pictures I want to know to which model particular image refers to. That's why I need to send id of a model to backing bean. Is there any possibility to send id of model to fileUploadListener ? <h:form enctype="multipart/form-data"> <p:panelGrid columns="2"> <h:outputLabel for="hotelName" value="#{msg.hotelName}"/> <p:inputText value="#{apartmentNew.name}" id="hotelName"/> <h:outputLabel for="hotelDescription" value="#{msg.hotelDescription}"/> <p:inputText value="#{apartmentNew