on 2015 Feb 20 2:42 PM
Hi ,
We have tried to implement custom label provider but it is not picked by ng cockpit.
e.g.
<y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:labels beanId="myRegionProvider">
</y:labels>
</y:base>
bean id="myRegionProvider" class="xyz.widgets.labels.MyRegionProvider" Spring bean in -backoffice-spring.xml
Please let us know what I'm missing here.
Thanks, Trilok
Solved it by creating an ApplicationListener bean which listens on ContextRefreshedEvent.
Added the logic of moving the label provider beans in the parent context.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your quick reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this is a known issue. For the time being you would have to register a bean factory post processor to register the bean in the parent context.
This should be fixed in the 5.6.0 (chances are that we'll make it for 5.5.1 but I can't promise it).
For now the bean will only be visible in the context of your custom backoffice module.
Cheers, Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trilok
Do you have this configuration in context element?
I mean sth like this:
<context type="com.hybris.cockpitng.util.Range" component="base">
<y:base xmlns:y="http://www.hybris.com/cockpit/config/hybris">
<y:labels beanId="rangeLabelProvider"/>
</y:base>
</context>
This configuration will enable your provider on specific part of cockpit ng application.
Best
Wojtek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
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.