Package org.apache.tapestry

Examples of org.apache.tapestry.IPage


    }

    public void service(IRequestCycle cycle) throws IOException
    {
        String pageName = cycle.getParameter(ServiceConstants.PAGE);
        IPage rawPage = cycle.getPage(pageName);

        IExternalPage page = null;

        try
        {
View Full Code Here


    public void presentStaleLinkException(IRequestCycle cycle,
            StaleLinkException cause)
        throws IOException
    {
        IPage exceptionPage = cycle.getPage(_pageName);
       
        PropertyUtils.write(exceptionPage, "message", cause.getMessage());

        cycle.activate(exceptionPage);
View Full Code Here

    public void presentException(IRequestCycle cycle, Throwable cause)
    {
        try
        {
            IPage exceptionPage = cycle.getPage(_exceptionPageName);
           
            PropertyUtils.write(exceptionPage, "exception", cause);
           
            cycle.activate(exceptionPage);
View Full Code Here

        return (IPage) newMock(IPage.class);
    }

    private IRequestCycle newCycle(String pageName)
    {
        IPage page = newPage();

        MockControl control = newControl(IRequestCycle.class);
        IRequestCycle cycle = (IRequestCycle) control.getMock();

        cycle.getPage(pageName);
View Full Code Here

        verifyControls();
    }

    public void testPageMissing()
    {
        IPage page = newPage();

        MockControl cyclec = newControl(IRequestCycle.class);
        IRequestCycle cycle = (IRequestCycle) cyclec.getMock();

        MockControl requestc = newControl(PortletRequest.class);
View Full Code Here

    public void presentStaleSessionException(IRequestCycle cycle, StaleSessionException cause)
    {
        try
        {
            IPage exceptionPage = cycle.getPage(_pageName);

            cycle.activate(exceptionPage);

            _responseRenderer.renderResponse(cycle);
        }
View Full Code Here

    public void presentStaleLinkException(IRequestCycle cycle, StaleLinkException cause)
    {
        try
        {
            IPage exceptionPage = cycle.getPage(_pageName);

            exceptionPage.setProperty("message", cause.getMessage());

            cycle.activate(exceptionPage);

            _responseRenderer.renderResponse(cycle);
        }
View Full Code Here

    public void presentException(IRequestCycle cycle, Throwable cause)
    {
        try
        {
            IPage exceptionPage = cycle.getPage(_exceptionPageName);

            exceptionPage.setProperty("exception", cause);

            cycle.activate(exceptionPage);

            _responseRenderer.renderResponse(cycle);
        }
View Full Code Here

     */

    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

        {
            startTime = System.currentTimeMillis();

            writeDocType(writer, cycle);

            IPage page = getPage();
           
            writer.comment("Application: " + getApplicationSpecification().getName());
           
            writer.comment("Page: " + page.getPageName());
            writer.comment("Generated: " + new Date());
           
            writer.begin("html");
            writer.println();
            writer.begin("head");
View Full Code Here

TOP

Related Classes of org.apache.tapestry.IPage

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.