Examples of HtmlComponentFactory


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

        LOG.info("created session");
        redirectToStartPage(response, user);
    }

    protected HtmlComponentFactory getHtmlComponentFactory() {
        return new HtmlComponentFactory(getPathBuilder());
    }
View Full Code Here

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

        response.sendRedirect(pathTo(HtmlServletConstants.START_PAGE));
    }

    private void renderPrompt(final HttpServletResponse response, final String user, final String password, final String error) throws IOException {
        response.setContentType("text/html");
        final HtmlComponentFactory factory = getHtmlComponentFactory();
        final boolean registerLink = getAuthenticationManager().supportsRegistration(RegistrationDetailsPassword.class);
        final LogonFormPage page = factory.createLogonPage(user, password, registerLink, error);
        page.write(response.getWriter());
    }
View Full Code Here

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

    private PathBuilder pathBuilder;
    private HtmlComponentFactory componentFactory;

    protected HtmlComponentFactory getHtmlComponentFactory() {
        if(componentFactory == null) {
            componentFactory = new HtmlComponentFactory(getPathBuilder());
        }
        return componentFactory;
    }
View Full Code Here

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

        response.sendRedirect(pathTo(HtmlServletConstants.LOGON_PAGE));
    }

    private void renderPrompt(final HttpServletResponse response, final String user, final String password, final String password2, final String message) throws IOException {
        response.setContentType("text/html");
        final HtmlComponentFactory factory = new HtmlComponentFactory(getPathBuilder());
        final RegisterFormPage page = factory.createRegisterPage(user, password, message);
        page.write(response.getWriter());
    }
View Full Code Here

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

                allowing(isisConfiguration).getString(HtmlViewerConstants.FOOTER);
                will(returnValue("<div></div>"));
            }
        });

        factory = new HtmlComponentFactory(pathBuilder, isisConfiguration);
       
        viewerContext = new Context(factory);
    }
View Full Code Here

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

        LOG.info("created session");
        redirectToStartPage(response, user);
    }

    protected HtmlComponentFactory getHtmlComponentFactory() {
        return new HtmlComponentFactory(getPathBuilder());
    }
View Full Code Here

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

        response.sendRedirect(pathTo(HtmlServletConstants.START_PAGE));
    }

    private void renderPrompt(final HttpServletResponse response, final String user, final String password, final String error) throws IOException {
        response.setContentType("text/html");
        final HtmlComponentFactory factory = getHtmlComponentFactory();
        final boolean registerLink = getAuthenticationManager().supportsRegistration(RegistrationDetailsPassword.class);
        final LogonFormPage page = factory.createLogonPage(user, password, registerLink, error);
        page.write(response.getWriter());
    }
View Full Code Here

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

        }
        return context;
    }

    protected HtmlComponentFactory getNewHtmlComponentFactory() {
        return new HtmlComponentFactory(getPathBuilder());
    }
View Full Code Here

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

        response.sendRedirect(pathTo(HtmlServletConstants.LOGON_PAGE));
    }

    private void renderPrompt(final HttpServletResponse response, final String user, final String password, final String password2, final String message) throws IOException {
        response.setContentType("text/html");
        final HtmlComponentFactory factory = new HtmlComponentFactory(getPathBuilder());
        final RegisterFormPage page = factory.createRegisterPage(user, password, message);
        page.write(response.getWriter());
    }
View Full Code Here

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

        }

        final HttpSession httpSession = request.getSession(true);
        httpSession.setAttribute(WebAppConstants.HTTP_SESSION_AUTHENTICATION_SESSION_KEY, authSession);

        final Context context = new Context(new HtmlComponentFactory());
        context.setSession(authSession);
        authSession.setAttribute(HtmlServletConstants.AUTHENTICATION_SESSION_CONTEXT_KEY, context);

        LOG.info("created session: " + httpSession);
        loggedIn(response, user);
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.