|
From: Darren D. <da...@da...> - 2004-03-05 20:26:43
|
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've committed freemarker ui and view components to the sandbox as there ar=
e=20
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=20
variables aspect working in your project that would be helpful.
Specify a FreemarkerConfig bean in your servlet context file like so;
<!-- freemarker config -->
<bean=20
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.FreemarkerVi=
ew
# if you don't specify a templateContext, WEB-INF/freemarker will be
# searched for templates
fmView.templateContext=3DWEB-INF/ftl
fmView.url=3Dtest.ftl
=2D --=20
Darren Davison
Public Key: http://www.davison.uk.net/key.jsp
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFASN8IKLMLAN01aw0RAqClAJ4pPlH0MaHWvp2TPxk4j3/T6J3rqwCdG4ny
DOuc/+gNCQrVqZdPuFB7Ug0=3D
=3DpFHR
=2D----END PGP SIGNATURE-----
|