On Tue, Nov 12, 2019 at 5:53 PM Ullrich Hafner <[email protected]>
wrote:
> if I remove the last element in the UI then the empty list ist not saved.
More precisely, the data bound setter […]
> Is not called if I remove all elements in the UI (it is called for 1,…,n
elements).

This is a well-known limitation in databinding. The workaround is to
override a `configSubmit` or whatever method to first null out / clear the
list, then call super. Example:

https://github.com/jenkinsci/ui-samples-plugin/blob/7d0fe2b32204a7fe0ec6adb6815e65d48b0dd54e/src/main/java/jenkins/plugins/ui_samples/HeteroList.java#L81

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr26sng%2BPMm7xULu%2B0SH97CgJhTRf3TdiC4NuPew6NFwSQ%40mail.gmail.com.

Reply via email to