On Fri, 28 Jan 2005 12:03:54 +0100, Joost Diepenmaat <[EMAIL PROTECTED]> wrote: > On Fri, Jan 28, 2005 at 10:32:53AM +0100, Wouter Heijke wrote: > > To me using "news,posrel,images" notation inside a tag is already > > something that should then be done inside a controller. > > I disagree - this is something that should be done by the model: > news.getImages() or something should implement the query - it's annoying to > have to know that the relation is a posrel when what you want is an > ordered list of images related to the news object, and it makes it hard > to change the datamodel later. The news class/builder/whatever should > be the place to implement this. I think the answer is in the middle. displaying a page is a view of your data(other pages can show the same data in a different view), the news.getImages() will not work for every view
It was a while ago but V2 proposed to define the data used in view in xml. This would free us from the posrel problem in jsp pages. I think (like rico said) that the "A" current way to do this might be to have separates jsp (or jsp parts) to define the model used and to show the data. The can be used for the global structure of pages. On the other hand i dislike MVC because it's anty OO and you have to do everything 3 or more times. _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
