Examples of pushCurrentTemplateName()


Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

            throw new CayenneRuntimeException("Error parsing template " + template);
        }

        // ... not sure what InternalContextAdapter is for...
        InternalContextAdapterImpl ica = new InternalContextAdapterImpl(context);
        ica.pushCurrentTemplateName(template);

        try {
            nodeTree.init(ica, velocityRuntime);
            nodeTree.render(ica, out);
            return out.toString();
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

         * we want to init then render
         */
        InternalContextAdapterImpl ica =
            new InternalContextAdapterImpl(context);

        ica.pushCurrentTemplateName(logTag);

        try
        {
            try
            {
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

    try {
      RuntimeInstance runtime = args.velocityRuntime;
      String templateName = "OutgoingEmail";
      SimpleNode tree = runtime.parse(new StringReader(template), templateName);
      InternalContextAdapterImpl ica = new InternalContextAdapterImpl(velocityContext);
      ica.pushCurrentTemplateName(templateName);
      try {
        tree.init(ica, runtime);
        StringWriter w = new StringWriter();
        tree.render(ica, w);
        return w.toString();
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

        {
            /*
             *  put the current template name on the stack
             */

            ica.pushCurrentTemplateName( name );
           
            /*
             *  init the AST
             */

 
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

            InternalContextAdapterImpl ica = new InternalContextAdapterImpl( context );

            try
            {
                ica.pushCurrentTemplateName( name );
                ica.setCurrentResource( this );

                ( (SimpleNode) data ).render( ica, writer);
            }
            finally
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

        if (nodeTree != null)
        {
            InternalContextAdapterImpl ica =
                new InternalContextAdapterImpl( context );
           
            ica.pushCurrentTemplateName( logTag );
           
            try
            {
                try
                {
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

        if (nodeTree != null)
        {
            InternalContextAdapterImpl ica =
                new InternalContextAdapterImpl( context );

            ica.pushCurrentTemplateName( logTag );

            try
            {
                try
                {
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

                     */

                    InternalContextAdapter ica
                            = new InternalContextAdapterImpl(new VelocityContext());

                    ica.pushCurrentTemplateName("VMProxyArg : "
                            + ParserTreeConstants.jjtNodeName[type]);

                    nodeTree.init(ica, rsvc);
                }
                catch ( Exception e )
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

                   */

                  InternalContextAdapter ica
                    = new InternalContextAdapterImpl(new VelocityContext());

                  ica.pushCurrentTemplateName("VMProxyArg : "
                    + ParserTreeConstants.jjtNodeName[type]);

                  nodeTree.init(ica, rsvc);
                    }
                }
View Full Code Here

Examples of org.apache.velocity.context.InternalContextAdapterImpl.pushCurrentTemplateName()

        if (nodeTree != null)
        {
            InternalContextAdapterImpl ica =
                new InternalContextAdapterImpl( context );

            ica.pushCurrentTemplateName( logTag );

            try
            {
                try
                {
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.