|
From: Keith D. <ke...@in...> - 2005-04-21 18:54:28
|
While webflow does indeed make chaining actions (commands) together = easy, I'm not clear if it is your best choice here or not. Is there really a workflow that spans some steps in play here? I'm not sure if multiple controllers forwarding to each other would be = the best solution here either--seems quite brittle. It seems like what you = want is a generic form of the ChainOfResponsibility pattern--maybe something similar to what commons chain does. I could see a single controller, = and behind it a chain of commands, where each command in the chain invokes = some method on a service object, and puts the return value in some context = which is add to the model. If that's what you need... -- In any case web flow is pretty easy to setup. It is powerful but not complex to use. Download PR2 and head to the Quick Start. If it = doesn't pass the 15 minute test please let us know. There are a wealth of sample applications available with the = distribution as well that should help you get up and running fast (see samples/webflow). Keith -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf = Of March, Andres Sent: Thursday, April 21, 2005 1:02 PM To: spr...@li... Subject: RE: [Springframework-developer] Any plans to add support for multiple handlers per request 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. Good to hear that it has that capability. I will take another look. It seems like a little overkill for what I need to do. 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. =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. 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. =20 Thoughts?=20 > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On Behalf > Of Seth Ladd > Sent: Wednesday, April 20, 2005 7:08 PM > To: spr...@li... > Subject: Re: [Springframework-developer] Any plans to add support for > multiple handlers per request >=20 > > Any plans to add support for multiple handlers per request? Any > > architectural reasons for not doing this? For what I'm doing, > interceptors > > really do not suit my needs. >=20 > Have you looked at Web Flows for this? It's quite easy to string > together many actions in a flow before you end up at your view state. >=20 > As for the MVC world, you could write a HandlerInterceptor that merely > delegates to a Controller (your handler). What part of the > interceptor is falling short of your needs? >=20 > Seth >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: New Crystal Reports XI. > Version 11 adds new functionality designed to reduce time involved in > creating, integrating, and deploying reporting solutions. Free runtime > info, > new features, or free trial, at: http://www.businessobjects.com/devxi/728 > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id=14396&op=3Dick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |