Yeah, it's not documented yet but Tapestry's "ExceptionReport" page
is what you have to override.

It's mentioned here: (or check the T5 source)
http://tapestry.apache.org/tapestry5/tapestry-core/guide/request.html
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/pages/ExceptionReport.html

Simply create your own page named ExceptionReport which implements the
ExceptionReporter interface. Here's an example ...

Cheers,
Nick.


ExceptionReport.java:
---
package yourapp.tapestry.pages;

import org.apache.tapestry.services.ExceptionReporter;

public class ExceptionReport implements ExceptionReporter
{
    private String error;

    public void reportException(Throwable exception)
    {
        error = exception.getLocalizedMessage();
    }

    public String getError()
    {
        return error;
    }
}

ExceptionReport.html:
---
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; >
<head>
    <title>Error</title>
</head>
    <body>
        Error: ${error}
    </body>
</html>


Micha&#322; Glogaza wrote:
Hi,

I want to override the default tapestry exception page with my own. I've 
searched the documentation and mailing list, but can't find any information 
about it. Can anyone help me out?

Thanks,
MichaƂ Glogaza



____________________________________________________________________________________
Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to