Hello community!
I have created component, which supports text code input by which it then
finds corresponding value in DB.
If user deletes code and leaves input component,
AjaxFormComponentUpdatingBehavior takes it's turn
and removes previously fetched value (if any). The problem is, that removing
current value is valid operation
even if component marked as required. So, I need to maintain two component
states - single value update
via AJAX and complete form submit, which in turn also can be AJAX'ified.
I just didn't find any robust solution yet. Currently my component returns
true from checkRequired() method in
case of AJAX request target, but if form will be submitted via AJAX
component could end up in invalid state.
Would be very grateful for advices!

Reply via email to