> From: de Grijs, Rudolf [mailto:[EMAIL PROTECTED]]
> 
> My name is Rudolf de Grijs and I'm new to this list.

Welcome!

> I'm intrigued by this discussion. Actually I was starting to write a
new
> Controller class that behaves like XForm. Using such a chain I could:
> 
> 1. transform the request into an XML document
> 2. transform this document using XSLT (actually this functionality is
> avaible, right?)
> 3. validate the document using a XML schema
> 4. finally store it in some XML database (well anything is possible)

Is your goal to send this data to the browser?  Maverick is a
presentation-oriented framework.  If all you want to do is perform these
steps and send an acknowledgement to the user, you probably should
compose your application with standard Java objects.

I'm all for using Maverick in imaginative ways, but it's an MVC
framework not a programming methodology :-)

I could just be misunderstanding what you're saying, though.

> At the moment I have written the above mentioned functionality and I
would
> like to build the right Controller classes. I do have the following
> question:
> 
> How does the Controller class relate to the view? I do understand that
I
> need to set the model via ControllerContext, but what type of objects
can
> be
> passed? Should I pass an org.w3c.dom.Document or the class itself or
can
> you
> pass anything as long as the corresponding view class knows how to
handle
> this object?

You can pass pretty much anything you like.  What type of view are you
using?  I'm really not quite sure what you're asking.

> Just like Aapo I'm a bit lazy and I do not want to spend to much time
to
> figure this out (I noticed that the section about developing your own
> Controller class still needs to be written in the Maverick manual.
> Probably
> it's not as trivial as one might think).

Writing controllers is easy, it's just writing documentation that's hard
:-)

There are several examples of custom Controller base classes in the
org.infohazard.maverick.ctl package.

Jeff Schnitzer
[EMAIL PROTECTED]


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
[INVALID FOOTER]

Reply via email to