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 ? 

I have pushed the scenario to 
https://github.com/Dohbedoh/jenkins-extension-action-test to help 
understand what I am trying to do.

Any guidance / pointers would help.

Thanks!

-- 
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/64725f18-c029-4ca6-b357-c0a98fa106c8%40googlegroups.com.

Reply via email to