First time I've stumped you :) 

Anyhow, I found a work around. Just had to use single quoates in the
parameter to pass back my string value, then I could handle setting up the
Field on the backend.

    t:validator="prop:getAuthorizerValidator('authorizer')"

    public FieldValidator getAuthorizerValidator(String clientId) { 
        String validationString = "none";
        Field f = null; 

        if(formValidations.contains(clientId) &&
formValidationAction.equals(action)) {
            validationString = "required";
        }        
        
        f = (Field)componentResources.getEmbeddedComponent(clientId); 
        
        return source.createValidator(f, validationString, null);
    } 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/dynamic-validation-for-required-not-required-tp4422440p5712122.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