ruleValidator.validate((IFormComponent) component.getComponent("enabled"), null, getRule());
IComponent component = getComponent("common"); RuleValidator ruleValidator = getValidRule(); IFormComponent enabled = (IFormComponent) component.getComponent("enabled"); ruleValidator.validate(enabled, null, getRule());
    private boolean isValid() {        IValidationDelegate delegate = TapestryUtils.getValidator(this);        AbstractComponent component = (AbstractComponent) getComponent("common");        RuleValidator ruleValidator = getValidRule();        try {            ruleValidator.validate((IFormComponent) component.getComponent("enabled"), null,                    getRule());        } catch (ValidatorException e) {            delegate.record(e);        }        return !delegate.getHasErrors();    }