Hi Joris, https://github.com/kinow/plugin-zsub
I couldn't get the doFill...Items method to work, so I used jelly + Java code to achieve similar behavior. And if I recall correctly, you needed to upload a file too, so in the global configuration there is a file upload field, and some code in the server to handle that (copied from PluginManager :-). I received an exception after submitting the form, due to a problem with a Subversion field, but I believe this is happening because I messed too much while coding the plugin, but I'm sure you'll get the idea from this code ;-) Hope that helps, Bruno P. Kinoshita http://kinoshita.eti.br http://tupilabs.com >________________________________ > From: Joris <[email protected]> >To: [email protected] >Sent: Friday, 27 July 2012 12:36 PM >Subject: Re: The 'best' way to add options to the global config screen > > >I managed to get something up and running, but I'm encountering some serious >problems. I have a class extending GlobalConfiguration, but it does not react >to doFillFieldNameItems() for dynamically filling a dropdown. I think it may >be because GlobalConfiguration declares a final getDescriptor, and the >descriptor is the way those doFill...Items methods work. Could this indeed be >the case? Testing on IRC with kinow and me did not give any solutions yet. > > >My code, should anyone be so kind to have a look is >here: http://pastebin.com/X1GMjasz >And this is the associated jelly: http://pastebin.com/1998y0A9 > > >Joris > > >On Thursday, July 26, 2012 4:10:51 PM UTC+2, Joris wrote: >Thanks Jesse and Frederik, those tips helped a lot :) Together with the jelly >docs generated with mvn site, I think I'll manage to get it working. > >
