cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Interceptors

Former Member
0 Kudos

We have written an interceptor to validate whether the mandatory fields are filled or not? If not filled it will display a warning message (using Messagebox.show() we are prompting the warning message). But that popup is sometimes prompting twice (Not all the times). Now we want that popup to prompt only once all the time.

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

you should replace the out of the box interceptor in interceptor mapping,this is what i have done for B2BCustomerModel

 <bean id="customerMandatoryAttributesValidatorMapping" class="de.hybris.platform.servicelayer.interceptor.impl.InterceptorMapping">
         <property name="interceptor" ref="customerMandatoryAttributesValidator"/>
         <property name="typeCode" value="B2BCustomer"/>
         <property name="replacedInterceptors" ref="MandatoryAttributesValidator"/>
         <property name="order" value="1"/>        
     </bean>