Package org.ajax4jsf.context

Examples of org.ajax4jsf.context.AjaxContextImpl


    vcpRenderKitFactory.addRenderKit("HTML_CHAMELEON", vcpRenderKit);
    renderKit.addRenderer(UIViewRoot.COMPONENT_FAMILY, UIViewRoot.COMPONENT_TYPE, new AjaxViewRootRenderer());
    // setup nessesary components.
    application.addComponent("javax.faces.ViewRoot", MockViewRoot.class.getName());
    // setup AjaxContext.
    ajaxContext = new AjaxContextImpl();
    request.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, ajaxContext);
    // Setup ViewHandler / ViewRoot.
    application.setViewHandler(new MockViewHandler(application.getViewHandler()));
   
    UIViewRoot root = new MockViewRoot();
View Full Code Here


    vcpRenderKitFactory.addRenderKit("HTML_CHAMELEON", vcpRenderKit);
    renderKit.addRenderer(UIViewRoot.COMPONENT_FAMILY, UIViewRoot.COMPONENT_TYPE, new AjaxViewRootRenderer());
    // setup nessesary components.
    application.addComponent("javax.faces.ViewRoot", MockViewRoot.class.getName());
    // setup AjaxContext.
    ajaxContext = new AjaxContextImpl();
    request.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, ajaxContext);
    // Setup ViewHandler / ViewRoot.
    application.setViewHandler(new MockViewHandler(application.getViewHandler()));
   
    UIViewRoot root = new MockViewRoot();
View Full Code Here

     * @return
     */
    protected FacesContext createFacesContext() {
        MockHttpSession tsession = new MockHttpSession();
        MockHttpServletRequest trequest = new MockHttpServletRequest(tsession);
        trequest.setAttribute(AjaxContext.AJAX_CONTEXT_KEY, new AjaxContextImpl());
        MockHttpServletResponse tresponse = new MockHttpServletResponse();
        MockFacesContext tfacesContext = (MockFacesContext)
        facesContextFactory.getFacesContext(servletContext,
                                            trequest,
                                            tresponse,
View Full Code Here

TOP

Related Classes of org.ajax4jsf.context.AjaxContextImpl

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.