Package org.rendersnake.error

Examples of org.rendersnake.error.MissingComponentError


public class MissingComponentErrorTest extends TestCase {

    public void testRender() throws Exception {
        QualifiedClassNameResolver resolver = new QualifiedClassNameResolver();
        MissingComponentError error = new MissingComponentError(resolver);
        HtmlCanvas html = new HtmlCanvas();
        error.renderOn(html);
    }
View Full Code Here


    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        HtmlCanvas html = HtmlCanvasFactory.createCanvas(request, response, response.getWriter());
        Renderable component = resolver.renderComponentForRequest(request);
        if (component == null) {
            component = new MissingComponentError(resolver);  
        }
        try {
            html.render(component);
        } catch (RenderException rex) { 
            LOG.log(Level.SEVERE,"[renderSnake render failure]",rex);
View Full Code Here

TOP

Related Classes of org.rendersnake.error.MissingComponentError

Copyright © 2018 www.massapicom. 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.