Skip to Content
Former Member
Dec 22, 2016 at 08:49 AM

Custom listviewactions fallback strategy


Hi all,

I have been trying to add a custom fallback strategy for actions, following the pattern described Creating a Fallback Strategy for UI Configuration.

I am adding the strategy using the CockpitConfigurationServiceExtender:

 <bean id="globallinkConfigurationExtender" class="com.hybris.cockpitng.core.config.util.CockpitConfigurationServiceExtender" lazy-init="false" init-method="addAll" destroy-method="removeAll">
     <property name="configurationService" ref="cockpitConfigurationService" />
     <property name="fallbackStrategies">
             <entry key="com.hybris.cockpitng.core.config.impl.jaxb.hybris.Actions">
                     <ref bean="customStrategy" />

However, rather than adding the new strategy to the existing, it overrides and removes the existing strategy. Debugging shows that the DefaultActionsConfigurationFallbackStrategy is registered until I register my custom strategy. When registering it though, it is the only strategy for actions and the original strategy is gone.

Maybe I am getting this wrong, but is the extender not supposed to append/add rather than replace?

Thanks in advance for your help!

Cheers, Sven