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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/457f2464-3d76-479b-bfac-9b7bd0364dcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.