|
From: Darren D. <da...@da...> - 2004-03-09 10:58:22
|
Actually it already *does* do this (as does the Velocity code). The classes in the web packages extend those in the ui package to provide the additional web functionality. Cameron, did you look at the org.springframework.ui.freemarker package in the sandbox too, or have I misunderstood what you're asking? > +1 - that's analogous to what we already have done for Velocity: There'= s > the generic support in org.springframework.ui.velocity, plus the > web-specific classes in org.springframework.web.servlet.view.velocity. > > Note that Spring's "ui" package is very generic: It provides functional= ity > typically used in the user interface tier rather than in core business > logic, like support for themes and Velocity templates. However, it does > *not* provide support for specific user interface technologies: That's = the > responsibility of the "web" and "rcp" packages, for example. > > Juergen > > > ________________________________ > > Von: spr...@li... im Auftrag v= on > Cameron Braid > Gesendet: Di 09.03.2004 08:28 > An: spr...@li... > Betreff: RE: [Springframework-developer] FreeMarker > > > > I havn't done any real integration with the sandbox code, but one > suggestion > that I can make is to move the core freemarker configuration classes fr= om > web into somewhere else, sice its not just a web technology. > > I use freemarker for email generation as well as views. > > I would presume that the same can be said and done for velocity, even x= slt > etc.. > > Cameron > > > >> -----Original Message----- >> From: spr...@li... >> [mailto:spr...@li...] >> On Behalf Of Darren Davison >> Sent: Saturday, 6 March 2004 6:12 AM >> To: spr...@li... >> Subject: [Springframework-developer] FreeMarker >> >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> I've committed freemarker ui and view components to the >> sandbox as there are a couple of things still outstanding to >> do, and they're not fully tested. >> >> Cameron - if you're able to take a look and see if you can >> get the shared variables aspect working in your project that >> would be helpful. >> >> Specify a FreemarkerConfig bean in your servlet context file like so; >> >> <!-- freemarker config --> >> <bean >> id=3D"freemarkerConfig" >> class=3D"org.springfr...view.freemarker.FreemarkerConfigurer" >> >> <!-- optional --> >> <property name=3D"freemarkerSettings"> >> <props> >> <prop key=3D"localized_lookup">true</prop> >> <!-- etc... --> >> </props> >> </property> >> >> <!-- optional --> >> <map name=3D"freemarkerVariables"> >> <entry key=3D"my_helper"> >> <ref local=3D"freemarkerHelperObject"/> >> </entry> >> <!-- etc... --> >> </map> >> </bean> >> >> >> >> and similar to the following to define a view; >> >> fmView.class=3Dorg.springframework.web.servlet.view.freemarker.F >> reemarkerView >> # if you don't specify a templateContext, WEB-INF/freemarker >> will be # searched for templates fmView.templateContext=3DWEB-INF/ftl >> fmView.url=3Dtest.ftl >> >> >> >> - -- >> >> Darren Davison >> Public Key: http://www.davison.uk.net/key.jsp -----BEGIN PGP >> SIGNATURE----- >> Version: GnuPG v1.2.4 (GNU/Linux) >> >> iD8DBQFASN8IKLMLAN01aw0RAqClAJ4pPlH0MaHWvp2TPxk4j3/T6J3rqwCdG4ny >> DOuc/+gNCQrVqZdPuFB7Ug0> =3DpFHR >> -----END PGP SIGNATURE----- >> >> >> ------------------------------------------------------- >> 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=3D= ick >> _______________________________________________ >> Springframework-developer mailing list >> Spr...@li... >> https://lists.sourceforge.net/lists/listinfo/springframework-developer >> > > > > > ------------------------------------------------------- > 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 > > > > > ------------------------------------------------------- > 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=3Dclick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > --=20 Darren Davison Public Key: http://www.davison.uk.net/key.jsp |