Hello world, I have resolved this issue. I was mistakenly not including the value attribute tag within the jelly tags, which is why it was writing values but not reading them from the object.
A On Wednesday, April 24, 2013 10:48:07 AM UTC+1, Alexis Gallagher wrote: > > Hi, > > I am wondering how to associate a plugin which subclasses hudson.Plugin > with the fields defined in its config.jelly file. > > The javadoc for hudson.Plugin says "Plugin can have an optional > config.jelly page.... This is convenient for exposing/maintaining > configuration that doesn't fit any Descriptors." ( > http://javadoc.jenkins-ci.org/hudson/Plugin.html#getWrapper() ). > > My config.jelly does render into the system configuration page, and my > plugin's configure() method does receive values submitted from that page. > So the system does see the jelly file and know it's associated with the > plugin. However, the page never properly renders the values from my plugin, > so the system is not mapping the jelly fields to the plugin fields. > > With other plugins I have looked at, it seems to be enough to annotate the > plugin as an @Extension. However, this does not seem to work. Do I need to > define public static inner class implementing GlobalPluginConfiguration? Or > am I not understanding a simpler way? > > A > > P.S. My plugin is at > https://github.com/algal/cors/blob/master/src/main/java/org/jenkinsci/plugins/cors/PluginImpl.java > > > -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
