Hi,
I've been developing Jenkins plugins for quite some time now but I just
can't get this form validation to work.
Some code:
This is the variable I want to validate(In the Describable class):
private final List<MySecret> mySecrets;
This is the form validation method(It is in the Descriptor class of course):
public FormValidation doCheckMySecrets(@QueryParameter final
List<MySecret> mySecrets) {
System.out.println("I am called");
return FormValidation.ok();
}
And this is the config.jelly:
<f:entry field="mySecrets">
<f:hetero-list name="mySecrets" hasHeader="true"
items="${instance.getMySecrets()}" addCaption="Add a secret" />
</f:entry>
>From the beginning the hetero-list wasn't wrapped in an entry tag and I
thought adding it would solve the problem, but no...
Have I missed something?
--
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.