Hey All!

I think it would be a good feature if I dont just get the model of a 
controller as result of calling a Maverick command, but the whole result 
of the view pipeline. Just assembling controllers is a different thing, 
that certainly also has its use cases, but I want to assemble whole 
commands. (controllers and their views)

Looking at the maverick dispatcher I find this code:

        Command cmd = this.getCommand(commandName);
<snip/>
            cmd.go(new MaverickContext(this, request, response));

I think the servlet should delegate its Command Generation and execution 
to a CommandFactory, and the usage of the Request and Response should be 
factored out of MaverickContext., which should instead use an Object 
that gives a parameter map (instead of request), and an Object that 
returns a Writer, to which the result is then written.
The Dispatcher could then use Implementations that use the Servlet 
request and response as usual, but other applications (for example my 
CompositeController) could execute commands and get back the result.

what do you think?

regards
 chris





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mav-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mav-user
Archives are available at http://www.mail-archive.com/

Reply via email to