Hello Folks,
I am trying to put in place an abstraction layer to create UI components that are meant to be used on AbstractItem, Run and Computer actions. Those components do not need to be persisted / saved anywhere and are just information for the actual action POST.
I use a jelly /lib/form/descriptorList to display the components. And the UI is working as expected.
On the Action POST method however, I want to retrieve the list of configured components (to a list of my abstract component) and therefore I cannot use the bindJSONToList method on the StaplerRequest as it would fail with: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class com.cloudbees.jenkins.support.components.AbstractComponent
I am not sure what is the right / best way for doing this ? Or maybe I do have to parse the JSON myself ?
Any guidance / pointers would help.
Thanks!