Hi all,

I'm developing plugin for jenkins and having problems with text field 
validation.
I use the following instruction 
<http://stackoverflow.com/questions/15029412/how-to-validate-a-form-from-a-config-jelly-on-jenkins>,
 
but receive error:
"HTTP ERROR 404 Problem accessing 
/job/jenkins-plugin-test/descriptorByName/TextBoxValueValidationDescriptor/checkValue.
 
Reason: Not Found"
where "TextBoxValueValidationDescriptor" is java class.


public final class TextBoxValueValidationDescriptor extends 
BuildStepDescriptor<Builder> { //descriptor's code /** * Performs 
on-the-fly validation of the form field 'value'. * * @param value * This 
parameter receives the value that the user has typed. * @return Indicates 
the outcome of the validation. This is sent to the * browser. */ public 
FormValidation checkValue(@QueryParameter String value) throws IOException, 
ServletException { if(value.equals("0")) { return 
FormValidation.warning("Response time should be more than ZERO"); } return 
FormValidation.ok(); } @Override public boolean isApplicable(Class<? 
extends AbstractProject> aClass) { return false; } @Override public String 
getDisplayName() { return null; } } 

Where should I put this class to get it work?

-- 
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.

Reply via email to