on 07-01-2021 10:24 PM
Dear colleagues,
How can I override the "ExplorerTreeController" file?
Path: /hybris/bin/modules/backoffice-framework/backoffice/web/webroot/WEB-INF/lib/backoffice-widgets-20.11.8-RC1.jar!/com/hybris/cockpitng/widgets/common/explorertree/ExplorerTreeController.class
Best regards,
André
Hi Andre,
You can create a new widget definition which extends the OOTB "com.hybris.cockpitng.widgets.common.explorertree" definition and specify you custom controller within this definition.xml.
Below is a sample snippet,
<widget-definition extends="com.hybris.cockpitng.widgets.common.explorertree"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.hybris.com/schema/cockpitng/widget-definition.xsd">
<controller class="com.test.backoffice.widgets.controller.CustomExplorerTreeController" />
</widget-definition>
Secondly, create CustomExplorerTreeController which will extend ExplorerTreeController.
Regards,
Paras.
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 | |
2 | |
1 | |
1 | |
1 | |
1 | |
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.