cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [RT] Flow example (XMLForms and Flowmap related)
Date Mon, 17 Jun 2002 20:34:01 GMT
Per-Olof Norén wrote:
> 
> Hi all,
> 
> Attatched is a ,ahem, MS PowerPoint miniatyre slideware and a gif
> describing a simple but IMO an effective pattern for building a web
> based "enterprise" system. With enterprise I mean systems that is used
> in daily work that needs to be fast, reliable, with the focus on data,
> such as orders, customers and so on and not fancy looks.
> 
> Ok, here goes:
> 
> The miniatyre app is supposed to manage members of some type.
> Data is stored in a database or accessed through a web service.
> Using common sense one could model the entire flow och the app as the
> attached image shows. Also supplied is a skectchy Flow javascript
> implementation that aims to implement this. The simplicity is almost
> breath-taking IMO. However in the perfoct world true MVC exists. In this
>   world I seem to miss the model representation.

Yes, I see your point.

> I consider xsp page and its serving pipline as view.
> I consider javascript flow code as controller
> I Still need to be able to model my data in a simple fashon.

Javascript can call java directly. So, there is nothing wrong in using
the same 'model' concept that is used in other web-app framework to
write beans or even EJB that perform what you need.

> With Stefano´s approach I guess a could run pipelines that executes esql
> taglib or soap xsp but i need to be able to do desciscions based on the
> data as well, not just request params. 

No, no, careful: the 'detachable pipeline' concept is for you to produce
XML using the same cocoon components, but connecting it to another
output stream which is not the client one (think of sending a PDF report
of your database via email using the same pipeline you use to generate
the PDF report to the web)

> To do this I need to represent my
> data in the Flow DOM or in beans.

yes, you should map your data model to beans or bean-like data
containers written in java and called by the flowmap. That gives you a
perfect MVC.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message