I am working with Broadleaf Commerce 2.2.0-GA
I was trying to create a new html page in admin using thymeleaf template, i created a controller for that also with the respective request mapping and even defined a layout map for the custom page in applicationContext-servlet-admin.xml like this
Code: Select all
<bean class="org.broadleafcommerce.common.web.BroadleafThymeleafViewResolver">
<property name="templateEngine" ref="blAdminWebTemplateEngine" />
<property name="order" value="1" />
<property name="cache" value="false" />
<property name="characterEncoding" value="UTF-8" />
<property name="fullPageLayout" value="/admin/layout/fullPageLayout" />
<property name="layoutMap">
<map>
<entry key="admin/login/" value="/admin/layout/loginLayout" />
<entry key="admin/adminCustomPage/" value="NONE"/>
</map>
</property>
</bean>
But still when I access the above mentioned url, I am getting this error
Exception evaluating SpringEL expression: "currentAdminModule.id == module.id" (admin/layout/partials/leftNav:11)
which means that still the layout for my custom page is fullPagfeLayout not NONE.
How can I configure my custom page to have no layout in admin?
I was able to implement the same page in site, that means my code is perfect and is working.But I need that to be in admin.
Glad if somebody can help me out.