buffer.append(file); nextHandler.apply(ctx, parent); ctx.includeFacelet(parent, new URL("par", "", 0, buffer.toString(), new FileDefinitionURLStreamHandler(fileDefinition, file))); } finally { ctx.setVariableMapper(orig);
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); } }
ctx.includeFacelet(parent, this.location); } catch (FileNotFoundException e) { throw new TagException(this.tag, e.getMessage());
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); } }