public ValidatorTagHandlerDelegate(ValidatorHandler delegate) { _delegate = delegate; // According to jsf 2.0 spec section 10.4.1.4 // this tag can be used as a leave within an EditableValueHolder // or as a container to provide validator information for all // EditableValueHolder-children (and grandchildren and ...) // (this behavior is analog to <f:ajax>) // --> Determine if we have children: _wrapMode = FaceletsCompilerUtils.hasChildren(_delegate.getValidatorConfig()); _beanBeforeJsfValidation = null; }
private boolean isWrapping() { // Would be nice if there was some easy way to determine whether // we are a leaf handler. However, even leaf handlers have a // non-null nextHandler - the CompilationUnit.LEAF instance. // We assume that if we've got a TagHandler or CompositeFaceletHandler // as our nextHandler, we are not a leaf. return ((owner.getValidatorConfig().getNextHandler() instanceof TagHandler) || (owner.getValidatorConfig().getNextHandler() instanceof CompositeFaceletHandler)); }
public ValidatorTagHandlerDelegate(ValidatorHandler delegate) { _delegate = delegate; // According to jsf 2.0 spec section 10.4.1.4 // this tag can be used as a leave within an EditableValueHolder // or as a container to provide validator information for all // EditableValueHolder-children (and grandchildren and ...) // (this behavior is analog to <f:ajax>) // --> Determine if we have children: _wrapMode = FaceletsCompilerUtils.hasChildren(_delegate.getValidatorConfig()); }
private boolean isWrapping() { // Would be nice if there was some easy way to determine whether // we are a leaf handler. However, even leaf handlers have a // non-null nextHandler - the CompilationUnit.LEAF instance. // We assume that if we've got a TagHandler or CompositeFaceletHandler // as our nextHandler, we are not a leaf. return ((owner.getValidatorConfig().getNextHandler() instanceof TagHandler) || (owner.getValidatorConfig().getNextHandler() instanceof CompositeFaceletHandler)); }
public ValidatorTagHandlerDelegate(ValidatorHandler delegate) { _delegate = delegate; // According to jsf 2.0 spec section 10.4.1.4 // this tag can be used as a leave within an EditableValueHolder // or as a container to provide validator information for all // EditableValueHolder-children (and grandchildren and ...) // (this behavior is analog to <f:ajax>) // --> Determine if we have children: _wrapMode = FaceletsCompilerUtils.hasChildren(_delegate.getValidatorConfig()); }
private boolean isWrapping() { // Would be nice if there was some easy way to determine whether // we are a leaf handler. However, even leaf handlers have a // non-null nextHandler - the CompilationUnit.LEAF instance. // We assume that if we've got a TagHandler or CompositeFaceletHandler // as our nextHandler, we are not a leaf. return ((owner.getValidatorConfig().getNextHandler() instanceof TagHandler) || (owner.getValidatorConfig().getNextHandler() instanceof CompositeFaceletHandler)); }
private boolean isWrapping() { // Would be nice if there was some easy way to determine whether // we are a leaf handler. However, even leaf handlers have a // non-null nextHandler - the CompilationUnit.LEAF instance. // We assume that if we've got a TagHandler or CompositeFaceletHandler // as our nextHandler, we are not a leaf. return ((owner.getValidatorConfig().getNextHandler() instanceof TagHandler) || (owner.getValidatorConfig().getNextHandler() instanceof CompositeFaceletHandler)); }
@Override public Object reload(Object scriptingInstance, int engineType, int artifactType) { if (!(scriptingInstance instanceof ComponentHandler)) return scriptingInstance; Class aclass = WeavingContext.getInstance().reload(scriptingInstance.getClass()); if (aclass.hashCode() == scriptingInstance.getClass().hashCode()) { //class of this object has not changed although // reload is enabled we can skip the rest now return scriptingInstance; } ValidatorHandler oldHandler = (ValidatorHandler) scriptingInstance; ValidatorConfig config = oldHandler.getValidatorConfig(); ValidatorHandler newHandler = (ValidatorHandler) ReflectUtil.instantiate(aclass, new Cast(ValidatorConfig.class, config)); //save all pending non config related properties wherever possible super.mapProperties(newHandler, engineType, oldHandler); return newHandler; }
private void applyWrapping(FaceletContext ctx, UIComponent parent) throws IOException { ComponentValidators validators = ComponentValidators.getValidators(ctx.getFacesContext(), true); validators.pushValidatorInfo(createValidatorInfo(ctx)); owner.getValidatorConfig().getNextHandler().apply(ctx, parent); validators.popValidatorInfo(); }
private void applyWrapping(FaceletContext ctx, UIComponent parent) throws IOException { ComponentValidators validators = ComponentValidators.getValidators(ctx.getFacesContext(), true); validators.pushValidatorInfo(createValidatorInfo(ctx)); owner.getValidatorConfig().getNextHandler().apply(ctx, parent); validators.popValidatorInfo(); }
String validatorId = _delegate.getValidatorConfig().getValidatorId(); if (validatorId != null && !"".equals(validatorId))
private void applyWrapping(FaceletContext ctx, UIComponent parent) throws IOException { ComponentValidators validators = ComponentValidators.getValidators(ctx.getFacesContext(), true); validators.pushValidatorInfo(createValidatorInfo(ctx)); owner.getValidatorConfig().getNextHandler().apply(ctx, parent); validators.popValidatorInfo(); }
String validatorId = _delegate.getValidatorConfig().getValidatorId(); if (validatorId != null && !"".equals(validatorId))
private void applyWrapping(FaceletContext ctx, UIComponent parent) throws IOException { ComponentValidators validators = ComponentValidators.getValidators(ctx.getFacesContext(), true); validators.pushValidatorInfo(createValidatorInfo(ctx)); owner.getValidatorConfig().getNextHandler().apply(ctx, parent); validators.popValidatorInfo(); }
String validatorId = _delegate.getValidatorConfig().getValidatorId(); if (validatorId != null && !"".equals(validatorId))
String validatorId = _delegate.getValidatorConfig().getValidatorId(); _delegate.getValidatorConfig().getNextHandler().apply(ctx, parent); if (validatorIdAvailable) _delegate.getValidatorConfig().getNextHandler().apply(ctx, parent); mctx.popEnclosingValidatorIdToStack(); if (groupsAvailable)
String validatorId = _delegate.getValidatorConfig().getValidatorId(); _delegate.getValidatorConfig().getNextHandler().apply(ctx, parent); _delegate.getValidatorConfig().getNextHandler().apply(ctx, parent);
String validatorId = _delegate.getValidatorConfig().getValidatorId();