I managed to corretly save my plugin global settings to the XML file, but
I'm stuck on how to fill correctly the global settings view, since my
<select> is being filled with the help of a "doFillXYZItems" method. I saw
the "selected" property in the Option object, but I don't know how to get
the stored setting for the input I'm rendering. The jelly code and fill
method are right below.
<f:entry title="Repositories" field="repositories">
<f:repeatable var="repo" minimum="1" items="${descriptor.repositories}"
add="Add repository">
<table width="100%" style="margin-bottom: 3px">
<f:entry title="Type" field="type">
<f:select />
</f:entry>
<f:entry title="Name" field="name">
<f:textbox value="${repo.name}" />
</f:entry>
<f:entry title="URL" field="url">
<f:textbox value="${repo.url}" />
</f:entry>
<f:entry title="">
<div align="right">
<f:repeatableDeleteButton value="Delete" />
</div>
</f:entry>
</table>
</f:repeatable>
</f:entry
public ListBoxModel doFillTypeItems() {
ListBoxModel ret = new ListBoxModel();
for (RepositoryType o : RepositoryType.values()) {
ret.add(o.getDescription(), o.name());
}
return ret;
}
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/217eb09e-c3d0-4388-93c1-c825d41fa7cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.