Examples of VelocityView


Examples of org.apache.velocity.tools.view.VelocityView


    protected void initializeView()
    {
        // get the VelocityView for this app
        VelocityView view =
            ServletUtils.getVelocityView(this.pageContext.getServletConfig());

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareContext(context, (HttpServletRequest)this.pageContext.getRequest());

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView

    protected void renderContent(Writer out) throws Exception
    {
        if (getTemplate() != null)
        {
            VelocityView view = getVelocityView();
            ViewToolContext context = getViewToolContext();

            // get the actual Template
            Template template = view.getTemplate(getTemplate());

            if (getBodyContent() != null)
            {
                context.put(getBodyContentKey(), getRenderedBody());
            }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView

    @Override
    protected VelocityView getVelocityView()
    {
        if (this.view == null)
        {
            this.view = new VelocityView(getServletConfig());
        }
        return this.view;
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView

    @Override
    protected VelocityView getVelocityView()
    {
        if (this.view == null)
        {
            this.view = new VelocityView(getServletConfig());
        }
        return this.view;
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView

     * Commits the parameters and makes this renderer ready for the use.
     *
     * @since 2.2.0
     */
    public void commit() {
        velocityView = new VelocityView(new TilesApplicationContextJeeConfig());
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView


    protected void initializeView()
    {
        // get the VelocityView for this app
        VelocityView view =
            ServletUtils.getVelocityView(this.pageContext.getServletConfig());

        // now make a Context
        ViewToolContext context =
            new JspToolContext(view.getVelocityEngine(), this.pageContext);

        view.prepareContext(context, (HttpServletRequest)this.pageContext.getRequest());

        setVelocityView(view);
        setViewToolContext(context);
    }
View Full Code Here

Examples of org.apache.velocity.tools.view.VelocityView

    protected void renderContent(Writer out) throws Exception
    {
        if (getTemplate() != null)
        {
            VelocityView view = getVelocityView();
            ViewToolContext context = getViewToolContext();

            // get the actual Template
            Template template = view.getTemplate(getTemplate());

            if (getBodyContent() != null)
            {
                context.put(getBodyContentKey(), getRenderedBody());
            }
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.