Re: Connect jelly and java

2014-09-05 Thread Robert Sandell
Well the project main page is not a place that is prepared to do any form bindings for you since its not a config page. You should just need to create a normal html select in your jobMain.jelly and fill it in whatever "static" way you like. Test The "it" var in jelly is a reference to your Ac

Re: Connect jelly and java

2014-09-05 Thread Jenkins User
Ah, ok.. does that mean my class has to implement the Describable interface? I'm really not yet familiar with all those Jenkins classes and interfaces :/ This "implements Action" and "extends TransientProjectActionFactory" combination is something I copied from another plugin because I knew it woul

Re: Connect jelly and java

2014-09-04 Thread Mads Nielsen
I dont think an action is a describable object? So i dont think tour approach will work. Den 04/09/2014 20.26 skrev : > Thanks for replying! > So now the code looks like this, right? > > public class JavaClass implements Action { > > private AbstractProject ap; > public String selection; > > publi

Re: Connect jelly and java

2014-09-04 Thread jenkinsuser92
Thanks for replying! So now the code looks like this, right? public class JavaClass implements Action { private AbstractProject ap; public String selection; public JavaClass(AbstractProject ap) { this.ap = ap; } @DataBoundConstructor public JavaClass(String selection) { this.sele

Re: Connect jelly and java

2014-09-04 Thread Ulli Hafner
Am 03.09.2014 um 22:45 schrieb jenkinsuse...@gmail.com: > Hi all, > > I am currently developing my first Jenkins plugin. > I need to have a dropdown menu on the job page that is filled via a java > method, but the jelly and the java file don't seem to work properly together: > There is just

Connect jelly and java

2014-09-03 Thread jenkinsuser92
Hi all, I am currently developing my first Jenkins plugin. I need to have a dropdown menu on the job page that is filled via a java method, but the jelly and the java file don't seem to work properly together: There is just an empty dropdown list. What could be wrong? *jobMain.jelly*