on 2019 Jan 28 2:12 PM
Hello,
I need to override the handler contactEmailAttribute from contactEmail attribute defined in commerceservices:
<attribute qualifier="contactEmail" type="java.lang.String">
<persistence type="dynamic" attributeHandler="contactEmailAttribute" />
<modifiers write="false" />
<description>Contact email is a dynamic attribute that is used to determine contact email
address.
</description>
</attribute>
but there is no alias defined for the handler:
<bean id="contactEmailAttribute" class="de.hybris.platform.commerceservices.model.ContactEmailAttribute">
<property name="customerEmailResolutionService" ref="customerEmailResolutionService"/>
</bean>
What would you suggest to do?
Thanks! Riccardo
Request clarification before answering.
Did you try something like:
<bean id="yourNewId" class="yourpackage.YourClass">
...
...
...
</bean>
<alias name="yourNewId" alias="contactEmailAttribute"/>
I haven't tested it but I think it should work.
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 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.