Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Last active July 3, 2020 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/ffa44ec0336edcfdd92cf2b751ebd940 to your computer and use it in GitHub Desktop.
Save velotiotech/ffa44ec0336edcfdd92cf2b751ebd940 to your computer and use it in GitHub Desktop.
@Override
public boolean configure(StaplerRequest req, JSONObject formData) throws FormException {
// To persist global configuration information,
// set that to properties and call save().
useFrench = formData.getBoolean("useFrench");
// ^Can also use req.bindJSON(this, formData);
//(easier when there are many fields; need set* methods for this, like setUseFrench)
save();
return super.configure(req,formData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment