Hi Tekante, I am interested in your plugin and wonder whether I could ask you for some help with it? I am having problems installing / building your plugin / code. Netbeans tells me there is an unresolvable error with some certificate and as I didn't find some .jpi file and the folder structure of the plugin seems to be deprecated I wonder whether you also have an up-to-date version of your plugin, running with the latest Jenkins ? I would be really really interested and grateful if you could provide some help with this.
Thanks in advance, mmm Am Donnerstag, 26. Januar 2012 18:38:15 UTC+1 schrieb Tekante: > > I'm working on a plugin where I would like to provide the ability to > specify two parameters using the same UI as the DynamicDropDownListBox > in the UI samples plugin. I'm running into a problem where I'm getting > the "This page expects a form submission" error metioned here: > https://issues.jenkins-ci.org/browse/JENKINS-2781. I'm a bit stuck on > debugging and wonder if someone could point me in the right direction. > > From looking at my browser request versus what is made for the UI > sample it seems like I haven't declared the right amount of data for > Jenkins to construct a proper URL request for getting the data from my > doFillXyzItems method but based on this thread: > > http://groups.google.com/group/jenkinsci-dev/browse_thread/thread/d3d3fee462b56d6e/dfd6179390aa2bd0?lnk=gst&q=ajax#dfd6179390aa2bd0 > > I think I would be seeing a different error if the doFillXyzItems > method was the problem. > > My plugin code is here: > https://github.com/tekante/Dynamic-Jenkins-Parameter. > At the moment, it is simply trying to populate the select item > correctly. > > When I try to run a build, on the parameter page I see a browser > request to: http://localhost:8080/job/Dynamic%20Parameter/build?delay=0sec > with no post data and a 400 response along with the following in my > Jenkins console > > [Winstone 2012/01/26 12:25:21] - Untrapped Error in Servlet > javax.servlet.ServletException: java.lang.Error: This page expects a > form submission > at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:605) > at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648) > at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) > .... trimmed > > The select list for my parameter is also not correclty populated. > > Based on what I see in the UI Samples, a post to > > http://localhost:8080/descriptorByName/hudson.plugins.ui_samples.DynamicDropDownListBox/fillStateItems > > I was expecting to see a request like > > http://localhost:8080/job/Dynamic%20Parameter/descriptorByName/com.tekante.jenkins.DynamicParamter/fillValueItems > > > Is there some documentation that can clarify what needs to be done to > hook up the <f:select /> item in my jelly template to populate based > on the doFillValueItems() method in my plugin's descriptor? > > Thanks, > Chris > -- 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/d/optout.
