@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { ComponentSupport.copyPassthroughAttributes(ctx, parent, owner.getTag()); if (wrapping) { applyWrapping(ctx, parent); } else { applyNested(ctx, parent); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { ComponentSupport.copyPassthroughAttributes(ctx, parent, owner.getTag()); if (wrapping) { applyWrapping(ctx, parent); } else { applyNested(ctx, parent); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { ComponentSupport.copyPassthroughAttributes(ctx, parent, owner.getTag()); if (wrapping) { applyWrapping(ctx, parent); } else { applyNested(ctx, parent); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { ComponentSupport.copyPassthroughAttributes(ctx, parent, owner.getTag()); if (wrapping) { applyWrapping(ctx, parent); } else { applyNested(ctx, parent); } }
/** * Template method for creating a Validator instance * * @param ctx * FaceletContext to use * @return a new Validator instance */ private Validator createValidator(FaceletContext ctx) { String id = owner.getValidatorId(ctx); if (id == null) { throw new TagException( owner.getTag(), "A validator id was not specified. Typically the validator id is set in the constructor ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(id); }
/** * Template method for creating a Validator instance * * @param ctx * FaceletContext to use * @return a new Validator instance */ private Validator createValidator(FaceletContext ctx) { String id = owner.getValidatorId(ctx); if (id == null) { throw new TagException( owner.getTag(), "A validator id was not specified. Typically the validator id is set in the constructor ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(id); }
/** * Template method for creating a Validator instance * * @param ctx * FaceletContext to use * @return a new Validator instance */ private Validator createValidator(FaceletContext ctx) { String id = owner.getValidatorId(ctx); if (id == null) { throw new TagException( owner.getTag(), "A validator id was not specified. Typically the validator id is set in the constructor ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(id); }
/** * Template method for creating a Validator instance * * @param ctx * FaceletContext to use * @return a new Validator instance */ private Validator createValidator(FaceletContext ctx) { String id = owner.getValidatorId(ctx); if (id == null) { throw new TagException( owner.getTag(), "A validator id was not specified. Typically the validator id is set in the constructor ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(id); }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }
/** * Template method for creating a Validator instance * * @param ctx FaceletContext to use * @return a new Validator instance */ protected Validator createValidator(FaceletContext ctx) { if (_delegate.getValidatorId(ctx) == null) { throw new TagException(_delegate.getTag(), "Default behavior invoked of requiring " + "a validator-id passed in the constructor, must override ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(_delegate.getValidatorId(ctx)); }
@Override public MetaRuleset createMetaRuleset(Class type) { MetaRuleset metaRuleset = new MetaRulesetImpl(_delegate.getTag(), type); // ignore binding and disabled, because they are handled by DelegatingMetaTagHandler metaRuleset.ignore(JSFAttr.BINDING_ATTR).ignore(JSFAttr.DISABLED_ATTR); // ignore for, because it is handled by FaceletsAttachedObjectHandler metaRuleset.ignore(JSFAttr.FOR_ATTR); return metaRuleset; }
/** * Template method for creating a Validator instance * * @param ctx FaceletContext to use * @return a new Validator instance */ protected Validator createValidator(FaceletContext ctx) { if (_delegate.getValidatorId(ctx) == null) { throw new TagException(_delegate.getTag(), "Default behavior invoked of requiring " + "a validator-id passed in the constructor, must override ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(_delegate.getValidatorId(ctx)); }
private void applyNested(FaceletContext ctx, UIComponent parent) { // only process if it's been created if (!ComponentHandler.isNew(parent)) { return; } if (parent instanceof EditableValueHolder) { applyAttachedObject(ctx.getFacesContext(), parent); } else if (UIComponent.isCompositeComponent(parent)) { if (null == owner.getFor()) { // PENDING(): I18N throw new TagException(owner.getTag(), "validator tags nested within composite components must have a non-null \"for\" attribute"); } // Allow the composite component to know about the target // component. CompositeComponentTagHandler.getAttachedObjectHandlers(parent).add(owner); } else { throw new TagException(owner.getTag(), "Parent not an instance of EditableValueHolder: " + parent); } }
private void applyNested(FaceletContext ctx, UIComponent parent) { // only process if it's been created if (!ComponentHandler.isNew(parent)) { return; } if (parent instanceof EditableValueHolder) { applyAttachedObject(ctx.getFacesContext(), parent); } else if (UIComponent.isCompositeComponent(parent)) { if (null == owner.getFor()) { // PENDING(): I18N throw new TagException(owner.getTag(), "validator tags nested within composite components must have a non-null \"for\" attribute"); } // Allow the composite component to know about the target // component. CompositeComponentTagHandler.getAttachedObjectHandlers(parent).add(owner); } else { throw new TagException(owner.getTag(), "Parent not an instance of EditableValueHolder: " + parent); } }
/** * Template method for creating a Validator instance * * @param ctx FaceletContext to use * @return a new Validator instance */ protected Validator createValidator(FaceletContext ctx) { if (_delegate.getValidatorId(ctx) == null) { throw new TagException(_delegate.getTag(), "Default behavior invoked of requiring " + "a validator-id passed in the constructor, must override ValidateHandler(ValidatorConfig)"); } return ctx.getFacesContext().getApplication().createValidator(_delegate.getValidatorId(ctx)); }
@Override public MetaRuleset createMetaRuleset(Class type) { Util.notNull("type", type); MetaRuleset m = new MetaRulesetImpl(owner.getTag(), type); return m.ignore("binding").ignore("disabled").ignore("for"); }
@Override public MetaRuleset createMetaRuleset(Class type) { Util.notNull("type", type); MetaRuleset m = new MetaRulesetImpl(owner.getTag(), type); return m.ignore("binding").ignore("disabled").ignore("for"); }
@Override public MetaRuleset createMetaRuleset(Class type) { Util.notNull("type", type); MetaRuleset m = new MetaRulesetImpl(owner.getTag(), type); return m.ignore("binding").ignore("disabled").ignore("for"); }
@Override public MetaRuleset createMetaRuleset(Class type) { Util.notNull("type", type); MetaRuleset m = new MetaRulesetImpl(owner.getTag(), type); return m.ignore("binding").ignore("disabled").ignore("for"); }