cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

interceptor validate dynamic attribute

Former Member
0 Likes
842

Hy.

I have a doubt about wizard validation. When I want to sava a wizard I use an interceptor to validate fields. But most of those fields are dynamic attributes.

Is it possible to validato those fields in interceptor validate. Thanx.

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

No, it is not. From the perspective of the life cycle of the Hybris Commerce Model, the DynamicAttributeHandler instance is called exactly at calling setter or getter on the Hybris Commerce Model while the Validate Interceptor and Data Validation Framework come into play before the data is saved in the database. Since you can not persist the data in a dynamic attribute, you will not be able to apply validation on them in the wizard.

You can explore https://help.hybris.com/6.6.0/hcd/8bb46096866910149208fae7c4ec7596.html , https://help.hybris.com/1808/hcd/8bfbf43e8669101480d0f060d79b1baa.html and https://help.hybris.com/6.6.0/hcd/8ba7f5a9866910148b749e7217fa45fa.html for more information.

Answers (0)