|
From: Rod J. <rod...@in...> - 2003-09-25 07:06:57
|
I think this is worth adding. R ----- Original Message ----- From: "Alef Arendsen (JTeam)" <al...@jt...> To: "'Trevor Cook'" <pr...@se...>; "'Spring Developers'" <spr...@li...> Sent: Wednesday, September 24, 2003 10:09 PM Subject: RE: [Springframework-developer] RequestContext.getMessage(String) > Although I'm not really a big fan of convenience methods, this sounds > like a reasonable one... > > Alef > > > -----Oorspronkelijk bericht----- > Van: spr...@li... > [mailto:spr...@li...] Namens > Trevor Cook > Verzonden: Wednesday, September 24, 2003 9:56 PM > Aan: Spring Developers > Onderwerp: [Springframework-developer] RequestContext.getMessage(String) > > > I have finally received permission to migrate our major Spring project > from our snapshot (modified 0.8 from March) and started the conversion > this afternoon. So far pretty smooth, and I'm really impressed with > some of the design changes I'm seeing now that I haven't had a chance to > before. Good work guys! > > With that in mind, I am noticing a few minor items, and I'll post as I > find any that I think are important enough to change. > > The first is adding a convenience method to > org.springframework.web.servlet.support.RequestContext for > "getMessage(String)". The same effect can be achieved by calling the > "getMessage(String, Object[])" method with null (it's documented :) ), > however I think the cleaner code with a utility method is worth adding > it. The convenience method implementation would be: > > return getMessage(code, null, this.defaultHtmlEscape); > > I can commit this unless there are any major objections. > > Trevor D. Cook > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |