|
From: Cameron B. <ca...@da...> - 2004-03-09 11:58:29
|
Its me who is the doofus.. I didn't dig around enough to see the = superclass ! Sorry about that. I'll take a closer look next time before opening my mouth ;) Cameron > -----Original Message----- > From: spr...@li...=20 > [mailto:spr...@li...] > On Behalf Of Darren Davison > Sent: Tuesday, 9 March 2004 8:41 PM > To: spr...@li... > Subject: Re: [Springframework-developer] FreeMarker >=20 > Actually it already *does* do this (as does the Velocity=20 > code). The classes in the web packages extend those in the=20 > ui package to provide the additional web functionality. >=20 > Cameron, did you look at the=20 > org.springframework.ui.freemarker package in the sandbox too,=20 > or have I misunderstood what you're asking? >=20 >=20 > > +1 - that's analogous to what we already have done for Velocity:=20 > > +There's > > the generic support in org.springframework.ui.velocity, plus the=20 > > web-specific classes in=20 > org.springframework.web.servlet.view.velocity. > > > > Note that Spring's "ui" package is very generic: It provides=20 > > functionality typically used in the user interface tier=20 > rather than in=20 > > core business logic, like support for themes and Velocity=20 > templates.=20 > > However, it does > > *not* provide support for specific user interface=20 > technologies: That's=20 > > the responsibility of the "web" and "rcp" packages, for example. > > > > Juergen > > > > > > ________________________________ > > > > Von: spr...@li...=20 > im Auftrag=20 > > von 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=20 > > suggestion that I can make is to move the core freemarker=20 > > configuration classes from web into somewhere else, sice=20 > its not just=20 > > 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=20 > velocity, even=20 > > xslt 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=20 > >> there are a couple of things still outstanding to do, and=20 > they're not=20 > >> fully tested. > >> > >> Cameron - if you're able to take a look and see if you can get the=20 > >> shared variables aspect working in your project that would be=20 > >> helpful. > >> > >> Specify a FreemarkerConfig bean in your servlet context=20 > 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,=20 > WEB-INF/freemarker will be=20 > >> # 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=20 > >> tutorial presented by Daniel Robbins, President and CEO of GenToo=20 > >> technologies. Learn everything from fundamentals to system=20 > >> administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick > >> _______________________________________________ > >> Springframework-developer mailing list=20 > >> Spr...@li... > >>=20 > https://lists.sourceforge.net/lists/listinfo/springframework-develope > >> r > >> > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux=20 > > tutorial presented by Daniel Robbins, President and CEO of GenToo=20 > > technologies. Learn everything from fundamentals to system=20 > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dick > > _______________________________________________ > > Springframework-developer mailing list=20 > > Spr...@li... > >=20 > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux=20 > > tutorial presented by Daniel Robbins, President and CEO of GenToo=20 > > technologies. Learn everything from fundamentals to system=20 > > = administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=3Dclick > > _______________________________________________ > > Springframework-developer mailing list=20 > > Spr...@li... > >=20 > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > >=20 >=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 >=20 >=20 |