public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { ctx.extendClient(this); boolean found = false; try { found = ctx.includeDefinition(parent, this.name); } finally { ctx.popClient(this); } if (!found) { this.nextHandler.apply(ctx, parent); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { VariableMapper orig = ctx.getVariableMapper(); if (this.params != null) { VariableMapper vm = new VariableMapperWrapper(orig); ctx.setVariableMapper(vm); for (int i = 0; i < this.params.length; i++) { this.params[i].apply(ctx, parent); } } ctx.pushClient(this); try { ctx.includeFacelet(parent, this.template.getValue(ctx)); } finally { ctx.setVariableMapper(orig); ctx.popClient(this); } }
ctx.popClient(this); ctx.setVariableMapper(orig);
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { if (this.template != null) { VariableMapper orig = ctx.getVariableMapper(); if (this.params != null) { VariableMapper vm = new VariableMapperWrapper(orig); ctx.setVariableMapper(vm); for (int i = 0; i < this.params.length; i++) { this.params[i].apply(ctx, parent); } } ctx.extendClient(this); try { ctx.includeFacelet(parent, this.template.getValue(ctx)); } finally { ctx.popClient(this); ctx.setVariableMapper(orig); } } else { this.nextHandler.apply(ctx, parent); } }