Examples of IPage


Examples of org.apache.tapestry.IPage

    public void pageBeginRender(PageEvent event)
    {
        Inspector inspector = (Inspector) getPage();

        IPage inspectedPage = inspector.getInspectedPage();

        String pageName = inspectedPage.getPageName();

        PropertyPersistenceStrategySource source = getPropertySource();

        Collection properties = source.getAllStoredChanges(pageName);
View Full Code Here

Examples of org.apache.tapestry.IPage

        Throwable cause)
        throws ServletException
    {
        try
        {
            IPage exceptionPage = cycle.getPage(getExceptionPageName());

            exceptionPage.setProperty("exception", cause);

            cycle.activate(exceptionPage);

            renderResponse(cycle, output);
View Full Code Here

Examples of org.apache.tapestry.IPage

    {
        // Discard any output from the previous page.

        out.reset();

        IPage page = cycle.getPage(pageName);

        cycle.activate(page);

        renderResponse(cycle, out);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

            servlet.writeLocaleCookie(_locale, this, context);
        }

        // Commit all changes and ignore further changes.

        IPage page = cycle.getPage();

        IMarkupWriter writer = page.getResponseWriter(output);

        output.setContentType(writer.getContentType());

        boolean discard = true;
View Full Code Here

Examples of org.apache.tapestry.IPage

        IRequestCycle cycle,
        ResponseOutputStream output)
        throws IOException, ServletException
    {
        String staleLinkPageName = getStaleLinkPageName();
        IPage page = cycle.getPage(staleLinkPageName);

        page.setProperty("message", ex.getMessage());

        redirect(staleLinkPageName, cycle, output, ex);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

     * component.
     */

    public void performCallback(IRequestCycle cycle)
    {
        IPage page = cycle.getPage(_pageName);
        IComponent component = page.getNestedComponent(_componentIdPath);
        IDirect direct = null;

        try
        {
            direct = (IDirect) component;
View Full Code Here

Examples of org.apache.tapestry.IPage

     *            the RequestCycle to use to locate the component
     * @return IComponent a component that has been initialized for the given RequestCycle
     */
    public IComponent findComponent(IRequestCycle cycle)
    {
        IPage objPage = cycle.getPage(_pageName);
        return objPage.getNestedComponent(_idPath);
    }
View Full Code Here

Examples of org.apache.tapestry.IPage

        // that a component from a page different than
        // the response page will render.
        // In 1.0.6, we start to record *both* the render page
        // and the component page (if different).

        IPage activePage = _requestCycle.getPage();
        IPage componentPage = component.getPage();
       
        Map parameters = new HashMap();
       
        boolean stateful = _request.getSession(false) != null;
       
        parameters.put(ServiceConstants.PAGE, activePage.getPageName());
        parameters.put(ServiceConstants.COMPONENT, component.getIdPath());
        parameters.put(ServiceConstants.CONTAINER, componentPage == activePage ? null
                : componentPage.getPageName());
        parameters.put(ServiceConstants.SESSION, stateful ? "T" : null);
        if (dsp.getUpdateParts() != null && dsp.getUpdateParts().length > 0)
            parameters.put(ServiceConstants.UPDATE_PARTS, dsp.getUpdateParts());
        if (dsp.isJSON())
            parameters.put("json", String.valueOf(dsp.isJSON()));
View Full Code Here

Examples of org.apache.tapestry.IPage

        String componentId = cycle.getParameter(ServiceConstants.COMPONENT);
        String componentPageName = cycle.getParameter(ServiceConstants.CONTAINER);
        String activePageName = cycle.getParameter(ServiceConstants.PAGE);
        boolean activeSession = cycle.getParameter(ServiceConstants.SESSION) != null;
       
        IPage page = cycle.getPage(activePageName);

        cycle.activate(page);

        IPage componentPage = componentPageName == null ? page : cycle.getPage(componentPageName);

        IComponent component = componentPage.getNestedComponent(componentId);

        IDirectEvent direct = null;

        try
        {
View Full Code Here

Examples of org.apache.tapestry.IPage

     */

    protected void redirect(String pageName, IRequestCycle cycle,
            ApplicationRuntimeException exception) throws IOException
    {
        IPage page = cycle.getPage(pageName);

        cycle.activate(page);

        renderResponse(cycle);
    }
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.