final VariableMapperWrapper newVarMapper = new VariableMapperWrapper(orig); ctx.setVariableMapper(newVarMapper); try {
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { String path = this.src.getValue(ctx); VariableMapper orig = ctx.getVariableMapper(); ctx.setVariableMapper(new VariableMapperWrapper(orig)); try { this.nextHandler.apply(ctx, null); ctx.includeFacelet(parent, path); } finally { ctx.setVariableMapper(orig); } } }
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); } }
VariableMapper varMapper = new VariableMapperWrapper(orig); for (int i = 0; i < this.vars.length; i++) { varMapper.setVariable(this.vars[i].getLocalName(), this.vars[i]
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); } }