on 2018 Nov 28 12:18 PM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.