|
From: Alef A. <al...@jt...> - 2004-03-11 22:35:10
|
I've added a JIRA issue yesterday about such behavior. We're having a mapping from logical view names to actual views now, but in my opinion = there should be another abstraction there, like you're saying to for instance allow one controller to have both a PDF view and an HTML view... I don't know whether or not adding mutators to the ModelAndView would do = the trick... > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On = Behalf > Of Darren Davison > Sent: Thursday, March 11, 2004 3:05 PM > To: spr...@li... > Subject: Re: [Springframework-developer] add mutators to ModelAndView = ? >=20 >=20 >=20 > > We have a concrete requirement to be able to override a viewname > selected > > by a controller in a postHandle() method of an interceptor. >=20 > having woken up now and put a little thought into this, I can handle = my > immediate requirements elegantly enough within the existing framework. > Specifying model attributes to override velocity subtemplates will do = the > trick - it just needs some reworking of the top-level templates = themselves > mostly. >=20 > I don't know whether the proposal may still be of use if someone had a > real need to override the entire view though (say to change from an = html > based view to a PDF/Excel one). I could see that type of thing as = still > being a possible requirement that would require mutators on = ModelAndView. >=20 > Regards, >=20 > -- > Darren Davison > Public Key: http://www.davison.uk.net/key.jsp >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |