Take a look at actionSubmit tag in grails documentation. I think, you should use actionSubmit instead of submitButton.
Up vote 0 down vote favorite share g+ share fb share tw.
Here's what I think I want to do: class MyController { def goToWizard = { if (params. Option1) redirect actionName:'wizard1', params:params if (params. Option2) redirect actionName:'wizard2', params:params } def wizard1Flow = { start { action { // put some values from the params into flow scope thingsThatGotPassedIn:params.
ThingsThatGotPassedIn } on('success'). To 'nextThing...' } // wizard 1 implementation... //... done { redirect view:'somewhereElse' } } def wizard2Flow = { start { action { // put some values from the params into flow scope thingsThatGotPassedIn:params. ThingsThatGotPassedIn } on('success').
To 'nextThing...' } // wizard 2 implementation... //... done { redirect view:'somewhereElse' } } } I've tried something like this, but I don't seem to ever get into the webflow. Is this a valid approach? The reason for all this is that I have a gsp that looks like so (a form with 2 submit buttons inside, each one should trigger a different webflow) ... There are some input elements inside the form that I want to pass the values of into whichever webflow gets called.
I'd rather just have the form submit call the appropriate webflow directly (the way all the examples that I've seen work), but there are two webflows, and only one form. How can I accomplish this? I'm also interested in alternative implementations, if you think this is the wrong way.
I'm new to webflows in grails. Grails redirect spring-webflow link|improve this question edited Mar 1 at 10:57skaffman114k8136227 asked Mar 6 '11 at 6:12Troy13518 100% accept rate.
Take a look at actionSubmit tag in grails documentation. I think, you should use actionSubmit instead of submitButton actionSubmit creates a submit button that maps to a specific action, which allows you to have multiple submit buttons in a single form. Javascript event handlers can be added using the same parameter names as in HTML.
By this approach, You no need to mention action in form tag, i.e. No need to make a check in goToWizard. You can send contents directly to your particular action.
Is this the solution to your problem?
Yep, this way is simpler. I got rid of the action attribute in the form tag and used 2 actionSubmit tags instead of submitButton tags. The actionSumits specify 'wizard1' and 'wizard2' respectively, for their action attributes, and I no longer needed the 'goToWizard' action in the controller.
– Troy Mar 6 '11 at 22:13.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.