on ‎2019 Jun 24 6:52 PM
Hi experts,
When trying to remove a populator which has been added by modifyPopulatorList, its not working. In an ootb spring .xml, we have the below configuration. Now I would like to remove the searchResultSubscriptionProductPopulator from the converter list. How can I achieve this. We do not want this populator to be called. Please help here.
<bean parent="modifyPopulatorList">
<property name="list" ref="commerceSearchResultProductConverter"/>
<property name="add" ref="searchResultSubscriptionProductPopulator"/>
</bean>
Request clarification before answering.
Hi - the following configuration should work:
<!-- Remove the searchResultSubscriptionProductPopulator from the commerceSearchResultProductConverter -->
<bean parent="modifyPopulatorList">
<property name="list" ref="commerceSearchResultProductConverter"/>
<property name="remove" ref="searchResultSubscriptionProductPopulator"/>
</bean>
Please check hybris/bin/platform/ext/platformservices/resources/platformservices/test/modify-populators-test-spring.xml for examples. You can also try executing ModifyPopulatorListBeanPostProcessorTest.java to test it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You need to have bean entry as mentioned in the below screenshot.Please let me know if this not works for you. or it will be better if you mentioned what all steps you did and code changes you tried for removing the populator from list


https://wiki.hybris.com/pages/viewpage.action?spaceKey=release5&title=Converters+and+Populators
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 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.