You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vitaly Baranovsky <vi...@gmail.com> on 2006/10/19 20:17:15 UTC

How can I do custom Exception page in tapestry portlet?

How can I do custom Exception page in tapestry portlet?

All is fine when I make it in servlet :
http://tapestry-tutorial.cloudnine.net.nz/pages-example.html

But in portlet it does not work.

Help me please!

Thanks!

_____
With best regards,
Vitaly Baranovsky

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


Re: How can I do custom Exception page in tapestry portlet?

Posted by Mats Henricson <ma...@gmail.com>.
Hm... just to be damned sure;

* The strings "StaleLink" and "StaleSession" are "magic", right, in the
sense that they're properties spelled exactly like that in some class, so
spelling them wrong is a nono?

* Is there something "magic" about "New" as the prefix to the page names?
Can I call them whatever I want?

* Do the backing Java classes implement any special interfaces?

* Do I need to do anything in hivemodule.xml ?

Sorry for these idiotic questions, but it doesn't work as is.

Mats

On 10/20/06, Andreas Andreou <an...@di.uoa.gr> wrote:
>
> in the .application
>
> <page name="Exception" specification-path="/pages/NewException.page"/>
> <page name="StaleLink" specification-path="/pages/NewStaleLink.page"/>
> <page name="StaleSession"
> specification-path="/pages/NewStaleSession.page"/>
>
>
>
> Mats Henricson wrote:
> > Hi!
> >
> > I think that page describes how to do it in Tapestry 3.
> > I use this in 4, and it works:
> >
> > <contribution configuration-id="tapestry.InfrastructureOverrides">
> >  <property name="exceptionPageName" value="GeneralError"/>
> > </contribution>
> >
> > GeneralError is my page, and it has a corresponding Java, HTML and page
> > class.
> >
> > Unfortunately you can't handle stale sessions the same way. I've
> > struggled
> > with that for about two days now. The info I see on the web doesn't
> work,
> > and no response from this mailing list.
> >
> > Mats
> >
> > On 10/19/06, Vitaly Baranovsky <vi...@gmail.com> wrote:
> >>
> >> How can I do custom Exception page in tapestry portlet?
> >>
> >> All is fine when I make it in servlet :
> >> http://tapestry-tutorial.cloudnine.net.nz/pages-example.html
> >>
> >> But in portlet it does not work.
> >>
> >> Help me please!
> >>
> >> Thanks!
> >>
> >> _____
> >> With best regards,
> >> Vitaly Baranovsky
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: How can I do custom Exception page in tapestry portlet?

Posted by Andreas Andreou <an...@di.uoa.gr>.
in the .application

<page name="Exception" specification-path="/pages/NewException.page"/>
<page name="StaleLink" specification-path="/pages/NewStaleLink.page"/>
<page name="StaleSession" specification-path="/pages/NewStaleSession.page"/>



Mats Henricson wrote:
> Hi!
>
> I think that page describes how to do it in Tapestry 3.
> I use this in 4, and it works:
>
> <contribution configuration-id="tapestry.InfrastructureOverrides">
>  <property name="exceptionPageName" value="GeneralError"/>
> </contribution>
>
> GeneralError is my page, and it has a corresponding Java, HTML and page
> class.
>
> Unfortunately you can't handle stale sessions the same way. I've 
> struggled
> with that for about two days now. The info I see on the web doesn't work,
> and no response from this mailing list.
>
> Mats
>
> On 10/19/06, Vitaly Baranovsky <vi...@gmail.com> wrote:
>>
>> How can I do custom Exception page in tapestry portlet?
>>
>> All is fine when I make it in servlet :
>> http://tapestry-tutorial.cloudnine.net.nz/pages-example.html
>>
>> But in portlet it does not work.
>>
>> Help me please!
>>
>> Thanks!
>>
>> _____
>> With best regards,
>> Vitaly Baranovsky
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>

-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


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


Re: How can I do custom Exception page in tapestry portlet?

Posted by Mats Henricson <ma...@gmail.com>.
Hi!

I think that page describes how to do it in Tapestry 3.
I use this in 4, and it works:

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

GeneralError is my page, and it has a corresponding Java, HTML and page
class.

Unfortunately you can't handle stale sessions the same way. I've struggled
with that for about two days now. The info I see on the web doesn't work,
and no response from this mailing list.

Mats

On 10/19/06, Vitaly Baranovsky <vi...@gmail.com> wrote:
>
> How can I do custom Exception page in tapestry portlet?
>
> All is fine when I make it in servlet :
> http://tapestry-tutorial.cloudnine.net.nz/pages-example.html
>
> But in portlet it does not work.
>
> Help me please!
>
> Thanks!
>
> _____
> With best regards,
> Vitaly Baranovsky
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>