Re: Is MessageFormat supported?
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Friday, October 23, 2009, 10:58:22 PM, [email protected] wrote: > > Daniel Dekany <[email protected]> wrote on 10/22/2009 10:09:20 AM: > >> Thursday, October 22, 2009, 5:58:34 PM, [email protected] wrote: >> >> > >> > Actually I have it set up as a shared variable when I create the >> > Configuration. >> >> Don't... A year later you won't understand where did "messageFormat" >> gone. Better said, if where did it come earlier. >> > > According to the documentation I can set this as a shared variable in the > SpringMVC View Resolvers configuration (specifically on the > FreeMarkerConfigurer bean definition). For the app I'm working on this is > by far the best place to set this up (assuming it works... I've had some > problems getting the Spring configurer to play nice with the FreeMarker > Configuration, such as not being able to use FreeMarker's "setSettings()" > method because the Spring developers didn't include that in the > FreeMarkerConfigurer class). [snip] What I'm saying is that you have a #include-ed or #import-ed file somewhere anyway, and you need that TemplateMethodModel modell class in the "class path" somewhere too. That's already two things to care about. Adding a shared variable, which happens on a yet another separate place, is a third thing to care about. But, it's needless, because you can just pull that TemplateMethodModel inside that #include-ed/#import-ed file, and that's it. One less thing that can break later... It's a maintenance thing. -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference