Examples of render()


Examples of org.apache.tapestry5.Translator.render()

        train_getMessageFormatter(globalMessages, "maptrans-message", formatter);
        train_getLabel(field, label);
        train_format(formatter, message, label);

        translator.render(field, message, writer, fs);

        replay();

        FieldTranslatorSource source = new FieldTranslatorSourceImpl(ts, globalMessages, fs);
View Full Code Here

Examples of org.apache.tapestry5.internal.structure.PageElement.render()

        PageElement element = factory.newAttributeElement(null, token);

        writer.element("root");

        element.render(writer, queue);

        verify();

        assertEquals(writer.toString(), "<?xml version=\"1.0\"?>\n<root name=\"value\"/>");
    }
View Full Code Here

Examples of org.apache.tapestry5.runtime.RenderCommand.render()

                commandCount++;

                if (traceEnabled) logger.trace(TapestryMarkers.RENDER_COMMANDS, "Executing: {}", command);

                command.render(writer, this);
            }
        }
        catch (RuntimeException ex)
        {
            String message = ServicesMessages.renderQueueError(command, ex);
View Full Code Here

Examples of org.apache.tiles.TilesContainer.render()

        TilesContainer container = TilesAccess.getContainer(servletContext);

        HttpServletRequest request = ServletActionContext.getRequest();
        HttpServletResponse response = ServletActionContext.getResponse();

        container.render(location, request, response);
    }
}
View Full Code Here

Examples of org.apache.tiles.impl.BasicTilesContainer.render()

        if (attributeToRender == null) {
          throw new ServletException("No tiles attribute with a name of '" + attrNames[i]
              + "' could be found for the current view: " + this);
        } else {
          container.render(attributeToRender, response.getWriter(), new Object[] { request, response });
        }
      }
    } else {
      super.renderMergedOutputModel(model, request, response);
    }
View Full Code Here

Examples of org.apache.tiles.renderer.AttributeRenderer.render()

        if (renderer == null) {
            throw new CannotRenderException(
                    "Cannot render an attribute with renderer name "
                            + attr.getRenderer());
        }
        renderer.render(attr, writer, requestItems);
    }

    /** {@inheritDoc} */
    public Object evaluate(Attribute attribute, Object... requestItems) {
        TilesRequestContext request = getRequestContextFactory()
View Full Code Here

Examples of org.apache.tiles.request.mustache.MustacheRenderer.render()

        writer.write("test template with test value");
        writer.flush();

        replay(request, applicationContext, applicationResource, writer);
        Renderer renderer = new MustacheRenderer();
        renderer.render("/test.html", request);
        verify(request, applicationContext, applicationResource, writer);
    }

    /**
     * Tests {@link MustacheRenderer#render(String, org.apache.tiles.request.Request)}.
View Full Code Here

Examples of org.apache.tiles.request.render.Renderer.render()

        writer.write("test template with test value");
        writer.flush();

        replay(request, applicationContext, applicationResource, writer);
        Renderer renderer = new MustacheRenderer();
        renderer.render("/test.html", request);
        verify(request, applicationContext, applicationResource, writer);
    }

    /**
     * Tests {@link MustacheRenderer#render(String, org.apache.tiles.request.Request)}.
View Full Code Here

Examples of org.apache.tiles.request.velocity.autotag.VelocityAutotagRuntime.render()

        expect(viewContext.getServletContext()).andReturn(servletContext);
        expect(servletContext.getAttribute(ApplicationAccess.APPLICATION_CONTEXT_ATTRIBUTE)).andReturn(applicationContext);

        replay(context, writer, node, viewContext, request, response, servletContext, applicationContext);
        VelocityAutotagRuntime runtime = new VelocityAutotagRuntime();
        runtime.render(context, writer, node);
        Request velocityRequest = runtime.createRequest();
        assertTrue(velocityRequest instanceof VelocityRequest);
        verify(context, writer, node, viewContext, request, response, servletContext, applicationContext);
    }
View Full Code Here

Examples of org.apache.velocity.runtime.Renderable.render()

            if (value instanceof Renderable)
            {
                Renderable renderable = (Renderable)value;
                try
                {
                    if (renderable.render(context,writer))
                      return true;
                }
                catch(RuntimeException e)
                {
                    // We commonly get here when an error occurs within a block reference.
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.