Thanks for the answer. I wanted to update a graph, and therefore use the validateButton and afterwards send something to the user to load the page new (the values are stored by the site behind). This could work somehow, but you're right, it's wrong to use the validateButton here. It seems to be better to use the apply button, but because I couldn't find any documentation about this, I wasn't using it (and for the validateButton, there is a documentation under https://wiki.jenkins-ci.org/display/JENKINS/Jelly+form+controls ).
The only hint I could find about the apply button is in https://jenkins-ci.org/maven-site/jenkins-core/jelly-taglib-ref.html#form:apply . There it says, one has to use the FormApply-class to react on a click on the apply-Button (with making a form around everything, where there are input fields). My Jenkins isn't able to find the FormApply-Class (I also tried to find this one: http://javadoc.jenkins-ci.org/hudson/util/FormApply.html but found nothing), so does this class still exist, or which one do I have to use instead? Is there a documentation which shows how to use form and apply? Am Mittwoch, 10. April 2013 19:39:53 UTC+2 schrieb Jesse Glick: > > On 04/10/2013 12:49 PM, David Georg Arthur Reichelt wrote: > > I've tried to send a corresponding Javascript with the ok-request (for > example with > FormValidation.okWithMarkup("<script>location.reload()</script>");, but the > script is > > never executed. > > I do not expect that the code which handles form validation result display > would be expecting to evaluate scripts it encounters. > > Anyway why would you want a FormValidation to reload the page? This would > defeat the purpose of form validation: the values currently entered in the > form would be discarded. > -- 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/groups/opt_out.
