Please use the developer list for such questions…

I think that you need to dive deeper into
https://github.com/jenkinsci/ui-samples-plugin/blob/master/src/main/resources/jenkins/plugins/ui_samples/DropdownList/index.jelly

This is one of the most complex bindings, where you need to build separate 
classes for each block.

> Am 06.02.2015 um 15:42 schrieb Kirill <yam...@gmail.com>:
> 
> Hi,
> 
> I have created a build step that contains a simple drop-down list that should 
> provide different UI pieces depending on selection. Selection contains just 2 
> hard-coded items.
> 
> That's how I implemented it:
> 
> <f:dropdownList name="eventType" title="Event type">
>     <f:dropdownListBlock title="Event as XML" value="eventXml">
>         Event XML is selected
>     </f:dropdownListBlock>
>     <f:dropdownListBlock title="Event as Maven GAV" value="eventGav">
>         Event GAV is selected
>     </f:dropdownListBlock>
> </f:dropdownList>
> 
> The sample text lines in blocks will be replaced by actual Jelly code - I 
> wanted to start with something very simple. All I need is to get at this 
> stage in my Builder is a String (eventXml or eventGav).
> 
> Appropriate Java code:
> 
> public class EventDispatcher extends Builder {
> 
>     ..............
>     private String eventType;
> 
>     @DataBoundConstructor
>     public BaselineDefinedMessageDispatcher(..............,
>                                             final String eventType) {
>         ..............
>         this.eventType = eventType;
>     }
> 
>     public String getEventType() {
>         return eventType;
>     }
> 
>     public void setEventType(String eventType) {
>         this.eventType = eventType;
>     }
> 
>     ..............
> }
> 
> As soon as I added the mentioned Jelly block to my config.jelly...The build 
> step is just not added to the job configuration any more! No errors or 
> exceptions anywhere...
> I browsed Jelly tags' docs 
> (https://jenkins-ci.org/maven-site/jenkins-core/jelly-taglib-ref.html), but 
> there are no instructions about how to bind this stuff in Java.
> I installed the ui-samples-plugin, but there are uber-complicated samples...
> 
> Please tell me what am I doing wrong. Btw, is there any way to tell Jenkins 
> to log all Jelly parsing and mapping errors?
> 
> Regards,
> Kirill.
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com 
> <mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/457f2464-3d76-479b-bfac-9b7bd0364dcc%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jenkinsci-users/457f2464-3d76-479b-bfac-9b7bd0364dcc%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/F708E058-BB86-415B-859B-6DD0A27AA0EC%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to