|
From: Alef A. \(JTeam\) <al...@jt...> - 2003-11-12 08:27:16
|
> .. is implemented by some arbitrary business objects, then a > view could be > defined as.. Darren, I've been implementing something like this before, using the reference data feature of the controllers, works like a charme. However, It's the problem still is that you end up using _one_ model, where - in e.g. a portlet - you would somehow want a per-portlet model, scoped, like in tiles... In your solution, what if one of the beans returns an entry in the model with the same key as the controller (or another bean). They override... The JSP spec does not have any features for scope besides the app/session/request/page. That's why Tiles added the Tiles scope... But it's kinda ugly, since it does not work with JSTL tags (jstl of course does not know the tiles scope). You first have to push all entries in the pet-tile scpoe to the page scope and them use 'em, argh... It would however be nice if we could come up with something that's not specific to views... Alef |