I found that there is a way to invoke the check methods using the Stapler :


Stapler.getCurrent().invoke(Stapler.getCurrentRequest(), Stapler.
getCurrentResponse(), this, "/checkField");

The only problem is that the FormValidation messages appear next to the 
button not where the TextBox messages appear.

Any idea of how to get a Stapler for a specific field?



On Friday, February 6, 2015 at 3:56:10 PM UTC-5, James Richard wrote:
>
> Hello,
>
> I was wondering if there was a way to run other doCheck methods when the 
> method for a ValidateButton finishes? 
>
>   For example, say I have a textbox with a file name and it's doCheck 
> method looks to see if the file exists.  If the file doesnt exist the User 
> can press on the validate button to create the file and it returns a 
> message saying that it was created.  The error message on the textbox still 
> hangs around though.  Is there a way to run the doCheck method of the 
> textbox after the file is created?
>
> Any help is appreciated
>

-- 
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/deb626cf-dd46-4d30-8f7b-80bd07baadee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to