To_Be_Removed: This page is not helpful to RSF users
--= OLD=--
This page predates the release of RSF 0.6 - TemplateResolver has since been factored into TemplateResolverStrategy and TemplateExtensionInferrer
A very simple implementation of the TemplateResolver interface that just looks at the current viewID and consumer ID to look up a single template file in a specified directory. An application may configure one of these by entering the following stanza into an application scope Spring configuration file (usually /WEB-INF/applicationContext.xml):
<bean id="viewTemplateResolver"
class="uk.org.ponder.rsf.templateresolver.BasicTemplateResolver">
<property name="templateExtensionInferrer" ref="templateExtensionInferrer" />
<property name="templateResolverStrategy" ref="templateResolverStrategy" />
</bean>
<bean id="templateResolverStrategy" parent="CRITemplateResolverStrategy"/>
<bean id="templateExtensionInferrer"
class="uk.org.ponder.rsf.templateresolver.StaticTemplateExtensionInferrer">
<property name="extension" value="html" />
</bean>
<bean id="CRITemplateResolverStrategy"
class="uk.org.ponder.rsf.templateresolver.CRITemplateResolverStrategy"
lazy-init="true">
<property name="baseDirectory">
<value>/content/templates/</value>
</property>
<property name="consumerInfo">
<ref bean="consumerInfoProxy" />
</property>
</bean>
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This page (revision-) was last changed on 02-Aug-2007 08:50 by UnknownAuthor
