Page 1 of 1

Bean defination of blWebTemplateEngine not found

Posted: Sat Feb 23, 2013 9:54 am
by sunil
Hi

I am studying the code of Demo site. I found the following code

Code: Select all

<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
      <property name="templateEngine" ref="blWebTemplateEngine" />
      <property name="order" value="1" />
      <property name="cache" value="false" />
      <property name="fullPageLayout" value="layout/fullPageLayout" />
      <property name="characterEncoding" value="UTF-8" />
      <property name="layoutMap">
         <map>
            <entry key="account/" value="layout/accountLayout" />
            <entry key="catalog/" value="NONE" />
            <entry key="checkout/" value="layout/checkoutLayout" />
            <entry key="checkout/confirmation" value="layout/fullPageNoNavLayout" />
            <entry key="layout/" value="NONE" />
         </map>
      </property>
   </bean>


This code is related to custom viewresolver of thymeleaf. But I did not found the deff. for blWebTemplateEngine which is used in above defination. I searched it in the source code of broadleaf commerce and found it in the file
bl-framework-web-applicationContext.xml

My question is that "Is this bean will be used in demo site?"


Thanks
Sunil(India)

Re: Bean defination of blWebTemplateEngine not found

Posted: Sat Feb 23, 2013 5:43 pm
by phillipuniverse
You are correct, unless you explicitly override the blWebTemplateEngine with your own definition, it will used what is defined in the framework.

Re: Bean defination of blWebTemplateEngine not found

Posted: Sat Feb 23, 2013 8:51 pm
by sunil
Thanks