|
From: Seth L. <set...@gm...> - 2005-04-21 18:12:55
|
On 4/21/05, March, Andres <am...@so...> wrote: > Thanks for the reply. I am interested in webflow but wow there is a lot > of stuff in there. I was not sure that it was focused on multiple > actions per request. I thought it was generally for multipage actions. Using webflow, you would configure multiple <action>'s to string together, finally landing on a <view>. So it's a simple way to model a flow diagram (often coming from management) as a webflow workflow.=20 It's actually very simple to setup. If you understand Spring MVC then setting up webflow will be very straight forward. > Basically I just want to call 1-to-many service methods for a single > request. I want to be able to configure this in the app-context > preferably, so that I don't have to create a controller for every > request. I opened SPR-871 to track this stuff. I attached some code > that basically does what I want but is kinda ugly. Ahh... so you want to bind N service calls directly to a request without a controller? How would you marshall request parameters into the service layer and back? This is the job for the controller, imho. So the controller is pretty thin, but does glue my service layer to the web mvc world. If this is what you want, webflow will still require you to write an Action method for each step along the way. >=20 > Then I thought it would be simpler if multiple controllers/handlers > could be specified for each request. I could easily make a generic > controller bean that would have a property to know which service method > to call and would just stick the result in the model. At the end of all > those, a final controller would return the ModelAndView. Again, how do you know what the method parameters would be for each service call? >=20 > I guess it would be nice to use webflow if it already has this > capability but I hope it is not too much trouble to set up. Now that you have explained this, webflow (afaik) does not have exactly this feature. You will still need to write a method that handles the Action, taking a RequestContext and returning an Event. Seth |