Package org.apache.myfaces.view.facelets

Examples of org.apache.myfaces.view.facelets.AbstractFaceletContext.pushClient()


                    names[i] = _vars[i].getLocalName();
                    values[i] = _vars[i].getValueExpression(ctx, Object.class);
                }
            }
            actx.pushTemplateContext(new TemplateContextImpl());
            actx.pushClient(this);
            if (this._vars.length > 0)
            {
                for (int i = 0; i < this._vars.length; i++)
                {
                    ((AbstractFaceletContext) ctx).getTemplateContext().setParameter(names[i], values[i]);
View Full Code Here


                    ((AbstractFaceletContext) ctx).getTemplateContext().setParameter(names[i], values[i]);
                }
            }
            //Disable caching always, even in 'always' mode
            actx.getTemplateContext().setAllowCacheELExpressions(false);
            actx.pushClient(this);
            ctx.includeFacelet(parent, this._location);
        }
        catch (FileNotFoundException e)
        {
            throw new TagException(this.tag, e.getMessage());
View Full Code Here

        //        _params[i].apply(ctx, parent);
        //    }
        //}

        AbstractFaceletContext actx = (AbstractFaceletContext) ctx;
        actx.pushClient(this);

        if (_params != null)
        {
            //VariableMapper vm = new VariableMapperWrapper(orig);
            //ctx.setVariableMapper(vm);
View Full Code Here

        AbstractFaceletContext actx = (AbstractFaceletContext) ctx;
        // eval include
        try
        {
            actx.pushClient(this);
            ctx.includeFacelet(parent, this._location);
        }
        catch (FileNotFoundException e)
        {
            throw new TagException(this.tag, e.getMessage());
View Full Code Here

      TemplateClient client = new TemplateClient() {
        public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException {
          return applyTemplate(ctx, parent, name);
        }
      };
      faceletContextImpl.pushClient(client);
      try {
        ctx.includeFacelet(parent, templatePath);
      } finally {
        faceletContextImpl.popClient(client);
        faceletContextImpl.setVariableMapper(originalVariableMapper);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.