This content has been marked as final. Show 3 replies
Have you tried setting immediate property of the first SOC to true and see if it works fine then?
As I mentioned above that programmatic solution is working by removing the partialTriggers from A2 and calling addPartialTarget on valueChange of A1. Is there a declarative solution to this use case? Why above-mentioned changes not working? Am I missing something there?
The reason is that you add A2 to the event boundaries of A1 by configuring its partial trigger property. Here's how it works. When you autosubmit A1, then only the select one choice component of A1 is submitted and only A1 is refreshed. When you reference the ID of A1 in A2 then you basically tell ADF Faces to include A2 in this submit cycle. Because A2 is mandatory and you did not set a value, the refresh now is causing a validation error. By manually performing the refresh of A2 (value change listener) you prevent this as A2 is not submitted but only refreshed. While our aim in ADF is to handle as much as we can declarative, there are use cases as yours that require manual correction. If A2 wasn't required then all of this use case would work declarative.
Hope this answers your question
Thanks for the explanation Frank.
I anticipated this response but expert explanation and confirmation always helps.