/** * Register a new {@link FunctionMapper} which checks if the given prefix matches our own <code>var</code> and then * find the associated method based on the given method name. */ @Override public void apply(FaceletContext context, UIComponent parent) throws IOException { String type = typeAttribute.getValue(context); String var = (varValue != null) ? varValue : type.substring(type.lastIndexOf('.') + 1); FunctionMapper originalFunctionMapper = context.getFunctionMapper(); context.setFunctionMapper(new ImportFunctionsMapper(originalFunctionMapper, var, toClass(type))); }
/** * Register a new {@link FunctionMapper} which checks if the given prefix matches our own <code>var</code> and then * find the associated method based on the given method name. */ @Override public void apply(FaceletContext context, UIComponent parent) throws IOException { String type = typeAttribute.getValue(context); String var = (varValue != null) ? varValue : type.substring(type.lastIndexOf('.') + 1); FunctionMapper originalFunctionMapper = context.getFunctionMapper(); context.setFunctionMapper(new ImportFunctionsMapper(originalFunctionMapper, var, toClass(type))); }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { FunctionMapper orig = ctx.getFunctionMapper(); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { FunctionMapper orig = ctx.getFunctionMapper(); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException, FacesException, FaceletException, ELException { FunctionMapper orig = ctx.getFunctionMapper(); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { FunctionMapper orig = ctx.getFunctionMapper(); pushMapper(ctx.getFacesContext(), this); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
public void apply(FaceletContext ctx, UIComponent parent) throws IOException { FunctionMapper orig = ctx.getFunctionMapper(); pushMapper(ctx.getFacesContext(), this); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { FunctionMapper orig = ctx.getFunctionMapper(); pushMapper(ctx.getFacesContext(), this); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }
@Override public void apply(FaceletContext ctx, UIComponent parent) throws IOException { FunctionMapper orig = ctx.getFunctionMapper(); pushMapper(ctx.getFacesContext(), this); ctx.setFunctionMapper(new CompositeFunctionMapper(this, orig)); try { next.apply(ctx, parent); } finally { ctx.setFunctionMapper(orig); } }