Yup, makes sense. Sounds like you need action chaining possibly. ----- Original Message ----- From: "Kelvin Tan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 06, 2003 5:46 PM Subject: Re: [OS-webwork] Velocity Views
> Not really. Velocity templates are dumb. They don't retrieve data to display > (not in the original push model at least. Turbine and Scarab came up with a > Pull model), they display data given to them in the context. > > I see Velocity templates as containing presentation logic, not view logic. > Maybe I'm being pedantic, but I define presentation logic as containing the > formatting, positional and aesthetic elements, and view logic as retrieving the > data for the presentation logic to render. > > Let me give you an example. Say we have a simple "view logic" class which given > a UUID, retrieves and materializes a User object from the database. Now, this > view can be reused by any template which requires the retrieval of a single > User, like a template for display a user's profile (read-only), a template for > display of user profile (as a form), perhaps a template which requires renders > various stuff on the same page, one of which is the display of user profile... > > Do you see where I'm driving at? > > Regards, > Kelvin > > -------- > The book giving manifesto - http://how.to/sharethisbook > > > On Thu, 6 Feb 2003 17:33:00 -0800, Patrick Lightbody said: > > > >Maybe I'm missing the question. The Action "does something", the > >velocity template "retrieves data to display". > > > >-Pat > > > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: SourceForge Enterprise Edition + > >IBM + LinuxWorld = Something 2 See! > >http://www.vasoftware.com > >_______________________________________________ Opensymphony-webwork > >mailing list [EMAIL PROTECTED] > >https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork