@Override public void apply(FaceletContext faceletContext, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { boolean disabled = false; if (disabledAttribute != null) { disabled = disabledAttribute.getBoolean(faceletContext); } AutoUpdateListener.subscribe(parent, disabled); } }
public boolean isDisabled(FaceletContext ctx) { if (disabled == null) { return false; } return disabled.getBoolean (ctx); }
private boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
public boolean isTestTrue(FaceletContext ctx) { return this.test.getBoolean(ctx); } }
private final boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
private boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
private boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
/** * Returns the boolean value of the given tag attribute. * @param context The involved Facelet context. * @param tagAttribute The tag attribute to retrieve the value from. * @return The boolean value of the given tag attribute, or false if the tag attribute is null. */ public static boolean getBoolean(FaceletContext context, TagAttribute tagAttribute) { return tagAttribute != null ? tagAttribute.getBoolean(context) : false; }
private boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
/** * Returns the boolean value of the given tag attribute. * @param context The involved Facelet context. * @param tagAttribute The tag attribute to retrieve the value from. * @return The boolean value of the given tag attribute, or false if the tag attribute is null. */ public static boolean getBoolean(FaceletContext context, TagAttribute tagAttribute) { return tagAttribute != null ? tagAttribute.getBoolean(context) : false; }
public boolean isTestTrue(FaceletContext ctx) { return this.test.getBoolean(ctx); } }
public boolean isTestTrue(FaceletContext ctx) { return this.test.getBoolean(ctx); } }
private final boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
private final boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
public boolean isTestTrue(FaceletContext ctx) { return this.test.getBoolean(ctx); } }
public boolean isTestTrue(FaceletContext ctx) { return this.test.getBoolean(ctx); } }
private boolean getTransient(FaceletContext ctx) { if (this.tranzient != null) { return this.tranzient.getBoolean(ctx); } return false; }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, ELException { boolean b = this.test.getBoolean(ctx); if (this.var != null) { ctx.setAttribute(var.getValue(ctx), b); } if (b) { this.nextHandler.apply(ctx, parent); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, ELException { boolean b = this.test.getBoolean(ctx); if (this.var != null) { ctx.setAttribute(var.getValue(ctx), b); } if (b) { this.nextHandler.apply(ctx, parent); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, ELException { boolean b = this.test.getBoolean(ctx); if (this.var != null) { ctx.setAttribute(var.getValue(ctx), b); } if (b) { this.nextHandler.apply(ctx, parent); } }