ok, so I tried this - 

public FieldValidator getNameFieldValidator() {
        String validationString = programsGroup.getPrograms().size() == 1 ?
"required" : "none"; 
        Field f = (Field) componentResources.getEmbeddedComponent("name"); 
        return fieldValidatorSource.createValidator(f, validationString,
null); 
}

(seeing an example in another post in this list)

But getting the error "Unknown validator type 'none'.  Configured validators
are email, max, maxlength, min, minlength, regexp, required."

So looks like I have to write my own, no-op validator as robert suggested. 
Or is there something i am missing?

Robert - would appreciate if you can post your no-op validator.

Thanks.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/how-to-dynamically-turn-t-validate-off-tp4536095p4536381.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to