Package org.apache.tapestry

Examples of org.apache.tapestry.IPage.attach()


            page = instantiatePage(name, namespace, specification);

            // The page is now attached to the engine and request cycle; some code
            // inside the page's finishLoad() method may require this. TAPESTRY-763

            page.attach(cycle.getEngine(), cycle);

            constructComponent(cycle, page, page, specification, namespace);

            // Walk through the complete component tree to set up the default
            // parameter values.
View Full Code Here


            // The page is now attached to the engine and request cycle; some
            // code
            // inside the page's finishLoad() method may require this.
            // TAPESTRY-763

            page.attach(cycle.getEngine(), cycle);

            constructComponent(cycle, page, page, specification, namespace);

            // Walk through the complete component tree to set up the default
            // parameter values.
View Full Code Here

        else
        {
            // But for pooled pages, we are responsible.
            // This call will also fire events to any PageAttachListeners

            result.attach(engine, cycle);
        }

        return result;
    }
View Full Code Here

            result.setChangeObserver(recorder);

            // Now that persistent properties have been restored, we can
            // attach the page to this request.

            result.attach(_engine, this);

            return result;
        }
        finally
        {
View Full Code Here

        IPage page = newPage();
        ListenerFixture l = new ListenerFixture();

        // Code path: no listener list

        page.attach(null, null);

        page.addPageAttachListener(l);

        page.attach(null, null);
View Full Code Here

        page.attach(null, null);

        page.addPageAttachListener(l);

        page.attach(null, null);

        assertEquals("pageAttached", l.getMethod());

        l.reset();
View Full Code Here

        l.reset();

        page.removePageAttachListener(l);

        page.attach(null, null);

        assertNull(l.getMethod());
    }

    public void testPageBeginRender()
View Full Code Here

            result.setChangeObserver(recorder);

            // Now that persistent properties have been restored, we can
            // attach the page to this request.

            result.attach(_engine, this);

            _monitor.pageLoadEnd(name);

            if (_loadedPages == null)
                _loadedPages = new HashMap();
View Full Code Here

        if (result.getEngine() == null)
        {
            // This call will also fire events to any PageAttachListeners
           
            result.attach(engine, cycle);
        }

        return result;
    }
View Full Code Here

        IPage page = newPage();
        ListenerFixture l = new ListenerFixture();

        // Code path: no listener list

        page.attach(null, null);

        page.addPageAttachListener(l);

        page.attach(null, null);
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.