Examples of CannotRenderException


Examples of org.apache.tiles.request.render.CannotRenderException

    }

    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }

        try {
            REQUEST_HOLDER.set(request);
            factory
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }

        ServletRequest servletRequest = ServletUtil.getServletRequest(request);
        // then get a context
        Context context = velocityView.createContext(servletRequest
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }
        ServletRequest servletRequest = org.apache.tiles.request.servlet.ServletUtil.getServletRequest(request);
        HttpServletRequest httpRequest = servletRequest.getRequest();
        HttpServletResponse httpResponse = servletRequest.getResponse();
        servlet.setValue(path);
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    private Pattern acceptPattern;

    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }

        try{
            new MustacheBuilder()
                    .build(new BufferedReader(new InputStreamReader(getResourceStream(request, path))), path)
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }
        ServletRequest servletRequest = org.apache.tiles.request.servlet.ServletUtil.getServletRequest(request);
        HttpServletRequest httpRequest = servletRequest.getRequest();
        HttpServletResponse httpResponse = servletRequest.getResponse();
        servlet.setValue(path);
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }

        ServletRequest servletRequest = ServletUtil.getServletRequest(request);
        // then get a context
        Context context = velocityView.createContext(servletRequest
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    public void render(Attribute attr, Request request)
        throws IOException {
        if (attr == null) {
            throw new CannotRenderException("Cannot render a null attribute");
        }

        if (attr.isPermitted(request)) {
            Renderer renderer = rendererFactory.getRenderer(attr.getRenderer());
            Object value = evaluate(attr, request);
            if (!(value instanceof String)) {
                throw new CannotRenderException(
                        "Cannot render an attribute that is not a string, toString returns: "
                                + value);
            }
            renderer.render((String) value, request);
        }
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

                prepare(request, attributeContext.getPreparer(), true);
            }

            render(attributeContext.getTemplateAttribute(), request);
        } catch (IOException e) {
            throw new CannotRenderException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.tiles.request.render.CannotRenderException

    /** {@inheritDoc} */
    @Override
    public void render(String path, Request request) throws IOException {
        if (path == null) {
            throw new CannotRenderException("Cannot dispatch a null path");
        }

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

Examples of org.apache.tiles.request.render.CannotRenderException

    /**
     * Test method for {@link CannotRenderException#CannotRenderException()}.
     */
    @Test
    public void testCannotRenderException() {
        CannotRenderException exception = new CannotRenderException();
        assertNull(exception.getMessage());
        assertNull(exception.getCause());
    }
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.