You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chris Chiappone <ch...@gmail.com> on 2006/02/08 20:00:30 UTC

Custom Exception Page

Could someone lead me to the documentation on how to use a custom
exception page?  I've been searching through this list but haven't
really found the answer.

Is the only think you need to do is add:

<page name="Exception" specification-path="CustomExceptionPage.page"/>

to the tapp.application file

Then create the CustomExceptionPage.page and CustomExceptionPage.html files?


--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Custom Exception Page

Posted by Chris Chiappone <ch...@gmail.com>.
Ok thanks for the input.

On 2/8/06, Muljadi Sulistio <ms...@gmail.com> wrote:
> Forgot to add that you'd also need to have a property or method named
> "exception" in your custom exception page.
>
> The property type is Throwable, which will be called by the Tapestry default
> ExceptionPresenter.
>
> You can see an example of this from the Vlib example in Tapestry 4.
>
> On 2/8/06, Muljadi Sulistio <ms...@gmail.com> wrote:
> >
> > If you are using Tapestry 4, you can change your hivemodule.xml as
> > follows:
> >
> >     <contribution configuration-id="tapestry.InfrastructureOverrides">
> >         <property name="exceptionPageName" value="ApplicationUnavailable"
> > />
> >     </contribution>
> >
> >
> > On 2/8/06, Chris Chiappone <ch...@gmail.com> wrote:
> > >
> > > Could someone lead me to the documentation on how to use a custom
> > > exception page?  I've been searching through this list but haven't
> > > really found the answer.
> > >
> > > Is the only think you need to do is add:
> > >
> > > <page name="Exception" specification-path=" CustomExceptionPage.page"/>
> > >
> > > to the tapp.application file
> > >
> > > Then create the CustomExceptionPage.page and CustomExceptionPage.htmlfiles?
> > >
> > >
> > > --
> > > ~chris
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > >
> > >
> >
>
>


--
~chris

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Custom Exception Page

Posted by Muljadi Sulistio <ms...@gmail.com>.
Forgot to add that you'd also need to have a property or method named
"exception" in your custom exception page.

The property type is Throwable, which will be called by the Tapestry default
ExceptionPresenter.

You can see an example of this from the Vlib example in Tapestry 4.

On 2/8/06, Muljadi Sulistio <ms...@gmail.com> wrote:
>
> If you are using Tapestry 4, you can change your hivemodule.xml as
> follows:
>
>     <contribution configuration-id="tapestry.InfrastructureOverrides">
>         <property name="exceptionPageName" value="ApplicationUnavailable"
> />
>     </contribution>
>
>
> On 2/8/06, Chris Chiappone <ch...@gmail.com> wrote:
> >
> > Could someone lead me to the documentation on how to use a custom
> > exception page?  I've been searching through this list but haven't
> > really found the answer.
> >
> > Is the only think you need to do is add:
> >
> > <page name="Exception" specification-path=" CustomExceptionPage.page"/>
> >
> > to the tapp.application file
> >
> > Then create the CustomExceptionPage.page and CustomExceptionPage.htmlfiles?
> >
> >
> > --
> > ~chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>

Re: Custom Exception Page

Posted by Muljadi Sulistio <ms...@gmail.com>.
If you are using Tapestry 4, you can change your hivemodule.xml as follows:

    <contribution configuration-id="tapestry.InfrastructureOverrides">
        <property name="exceptionPageName" value="ApplicationUnavailable"
/>
    </contribution>


On 2/8/06, Chris Chiappone <ch...@gmail.com> wrote:
>
> Could someone lead me to the documentation on how to use a custom
> exception page?  I've been searching through this list but haven't
> really found the answer.
>
> Is the only think you need to do is add:
>
> <page name="Exception" specification-path="CustomExceptionPage.page"/>
>
> to the tapp.application file
>
> Then create the CustomExceptionPage.page and CustomExceptionPage.htmlfiles?
>
>
> --
> ~chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>