hookAboutToApply(faceletCtx, parent);
FaceletContextImplBase ctx = (FaceletContextImplBase) faceletCtx;
VariableMapper orig = ctx.getVariableMapper();
if (this.params != null || this.vars.length > 0) {
VariableMapper varMapper = new VariableMapperWrapper(orig);
ctx.setVariableMapper(varMapper);
if (this.params != null) {
for (ParamHandler param : this.params) {
param.apply(ctx, parent);
}
}
// setup a variable map
if (this.vars.length > 0) {
for (TagAttribute var : this.vars) {
varMapper.setVariable(var.getLocalName(),
var.getValueExpression(ctx, Object.class));
}
}
}