Package org.apache.isis.viewer.html.component

Examples of org.apache.isis.viewer.html.component.Page


        page.addDebug("<a href=\"" + pathTo("debugoff") + "\">Debug off</a>");
    }

    public Page generatePage(final Context context, final Request request) {
        context.restoreAllObjectsToLoader();
        final Page page = context.getComponentFactory().createPage();
        pageHeader(context, page);
        final Block navigation = page.getNavigation();

        final Block optionBar = context.getComponentFactory().createBlock("options", null);
        optionBar.add(context.getComponentFactory().createHeading("Options"));

        Block block = context.getComponentFactory().createBlock("item", null);
View Full Code Here


        response.setContentType("text/html");
        response.setCharacterEncoding(encoding);
        // no need to check if logged in; the IsisSessionFilter would
        // have prevented us from getting here.

        final Page page = controller.generatePage(context, req);
        if (context.isValid()) {
            if (controller.isDebug()) {
                controller.addDebug(page, req);
                addDebug(request, page);
            }
            PrintWriter writer;
            writer = response.getWriter();
            page.write(writer);
        } else {
            response.sendRedirect(getLogonPage());
        }
    }
View Full Code Here

        // have prevented us from getting here.

        try {
            // REVIEW: why was this commented out?
            // SessionAccess.startRequest(context.getSession());
            final Page page = controller.generatePage(context, req);
            if (context.isValid()) {
                if (controller.isDebug()) {
                    controller.addDebug(page, req);
                    addDebug(request, page);
                }
                PrintWriter writer;
                writer = response.getWriter();
                page.write(writer);
            } else {
                response.sendRedirect(getLogonPage());
            }
        } finally {
            // REVIEW: why was this commented out?
View Full Code Here

        page.addDebug("<a href=\"" + pathTo("debugoff") + "\">Debug off</a>");
    }

    public Page generatePage(final Context context, final Request request) {
        context.restoreAllObjectsToLoader();
        final Page page = context.getComponentFactory().createPage();
        pageHeader(context, page);
        final Block navigation = page.getNavigation();

        final Block optionBar = context.getComponentFactory().createBlock("options", null);
        optionBar.add(context.getComponentFactory().createHeading("Options"));

        Block block = context.getComponentFactory().createBlock("item", null);
View Full Code Here

        page.addDebug("<a href=\"debugoff.app\">Debug off</a>");
    }

    public Page generatePage(final Context context, final Request request) {
        context.restoreAllObjectsToLoader();
        final Page page = context.getComponentFactory().createPage();
        pageHeader(context, page);
        final Block navigation = page.getNavigation();

        final Block optionBar = context.getComponentFactory().createBlock("options", null);
        optionBar.add(context.getComponentFactory().createHeading("Options"));

        Block block = context.getComponentFactory().createBlock("item", null);
View Full Code Here

        // no need to check if logged in; the IsisSessionFilter would
        // have prevented us from getting here.

        try {
            // SessionAccess.startRequest(context.getSession());
            final Page page = controller.generatePage(context, req);
            if (context.isValid()) {
                if (controller.isDebug()) {
                    controller.addDebug(page, req);
                    addDebug(request, page);
                }
                PrintWriter writer;
                writer = response.getWriter();
                page.write(writer);
            } else {
                response.sendRedirect(HtmlServletConstants.LOGON_APP_PAGE);
            }
        } finally {
            // SessionAccess.endRequest(context.getSession());
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.html.component.Page

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.