on 2018 Sep 07 12:19 PM
Request clarification before answering.
Hi,
To do the same we need to create a package inside acceleratoraddon/web/src and place the filter class there. We then need to create a bean in the resource/{addonName}/web/spring/{addonName}-web-spring.xml.
<bean id="someFilter" class="org.some.filter.SomeFilter" >
</bean>
You would now need to add this filter bean in to the defaultStorefrontTenantDefaultFilterChainList like in the resource/{addonName}/web/spring/{addonName}-web-spring.xml -
<bean id="someFilterListMergeDirective" depends-on="defaultStorefrontTenantDefaultFilterChainList" parent="listMergeDirective">
<property name="add" ref="someFilter"/>
</bean>
Once that is done we just need to install the addon on to the storefront using the command ant addoninstall -Daddonnames="AddOnName1,AddOnName2" -DaddonStorefront.<storefrontTemplateName>="Storefront1,Storefront2"
Then do an ant clean all, refresh the workspace and you should be able to see the filter in the {storefront}/web/addonsrc/{addonName}/{package}/someFilter.java
this filter is now hooked in the defaultStorefrontFilterChainList.
thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.