%%(font-size:2em;color:red;)
To_Be_Removed: This page is not helpful to RSF users
%%

%%( background-color: #c0c0c0; border: 1px dotted black; padding: 0.2em; font-size: 200%; text-align: center)
--= OLD=--
%%

%%( background-color: #c0c0c0; text-align: center)
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>
}}}