You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by andyhot <an...@di.uoa.gr> on 2006/09/01 00:10:36 UTC

Re: Few questions (contrib:table and link )

Vinicius Carvalho wrote:
> Thanks that did the trick :)
>
> Regarding the exception, yeah, seems that tapestry captures all
> runtime exceptions and wrap them inside ApplicationRuntimeException,
> so my catch(ChatServerException) would never be executed :)
So, are you catching ApplicationRuntimeExceptions now?

You could probably have your own implementation of ListenerMethodInvoker
that would let those exceptions pass through.
>
> Regards
>
> On 8/31/06, robertz@scazdl.org <ro...@scazdl.org> wrote:
>> Depending on the complexity of your confirmation dialog, you can do
>> something simple, too, like taking advantage of informal parameters. :)
>> Something like:
>> <a href="@DirectLink" ... onclick="return confirm('Are you sure you want
>> to purge all elements?')">Purge</a>
>>
>>
>> Robert
>>
>> > Vinicius Carvalho wrote:
>> >> 1st: Is there an way to have an confirmation message for my
>> >> DirectLink? Like showing an confirmation box "Are you sure you
>> want to
>> >> purge all elements?" and if ok, calling the link? I believe I need to
>> >> use the ILinkRenderer for that, but I'm kinda confused yet, just need
>> >> some suggestions :)
>> > you can use an ILinkRenderer or check out the source of these
>> components
>> >
>> http://tapfx.cvs.sourceforge.net/tapfx/tapfx-tapestry4/src/java/net/sf/tapfx/components/confirm/
>>
>> >>
>> >> 2nd: Its related to my last post, does runtime exception get an
>> >> special treatment by the framework? Is this why I can't capture them
>> >> inside my EngineService?
>> > To better understand, is the problem that
>> >
>> > chatListener.trigger does not throw any exceptions?
>> >>
>> >> My best regards
>> >>
>> >> ---------------------------------------------------------------------
>> >> 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
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> 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: Few questions (contrib:table and link )

Posted by andyhot <an...@di.uoa.gr>.
Create a page in your app and name it Exception

Vinicius Carvalho wrote:
> Yep, I'm catching them :) now everything works!
> One thing that I'd like to know also (could not find on the tapestry
> site or kent's book) is how to customize the exception page. for a
> production environment I'd rather have a: "bad server no donut for
> you" message, and a link to email the administrator, than the
> exception page offered by tapestry (which btw really amused the user
> acceptance testers :) )
>
> Regards
>
> On 8/31/06, andyhot <an...@di.uoa.gr> wrote:
>> Vinicius Carvalho wrote:
>> > Thanks that did the trick :)
>> >
>> > Regarding the exception, yeah, seems that tapestry captures all
>> > runtime exceptions and wrap them inside ApplicationRuntimeException,
>> > so my catch(ChatServerException) would never be executed :)
>> So, are you catching ApplicationRuntimeExceptions now?
>>
>> You could probably have your own implementation of ListenerMethodInvoker
>> that would let those exceptions pass through.
>> >
>> > Regards
>> >
>> > On 8/31/06, robertz@scazdl.org <ro...@scazdl.org> wrote:
>> >> Depending on the complexity of your confirmation dialog, you can do
>> >> something simple, too, like taking advantage of informal
>> parameters. :)
>> >> Something like:
>> >> <a href="@DirectLink" ... onclick="return confirm('Are you sure
>> you want
>> >> to purge all elements?')">Purge</a>
>> >>
>> >>
>> >> Robert
>> >>
>> >> > Vinicius Carvalho wrote:
>> >> >> 1st: Is there an way to have an confirmation message for my
>> >> >> DirectLink? Like showing an confirmation box "Are you sure you
>> >> want to
>> >> >> purge all elements?" and if ok, calling the link? I believe I
>> need to
>> >> >> use the ILinkRenderer for that, but I'm kinda confused yet,
>> just need
>> >> >> some suggestions :)
>> >> > you can use an ILinkRenderer or check out the source of these
>> >> components
>> >> >
>> >>
>> http://tapfx.cvs.sourceforge.net/tapfx/tapfx-tapestry4/src/java/net/sf/tapfx/components/confirm/
>>
>> >>
>> >> >>
>> >> >> 2nd: Its related to my last post, does runtime exception get an
>> >> >> special treatment by the framework? Is this why I can't capture
>> them
>> >> >> inside my EngineService?
>> >> > To better understand, is the problem that
>> >> >
>> >> > chatListener.trigger does not throw any exceptions?
>> >> >>
>> >> >> My best regards
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> 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
>> >> >
>> >>
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > 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
>>
>>
>
> ---------------------------------------------------------------------
> 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: Few questions (contrib:table and link )

Posted by Vinicius Carvalho <ja...@gmail.com>.
Yep, I'm catching them :) now everything works!
One thing that I'd like to know also (could not find on the tapestry
site or kent's book) is how to customize the exception page. for a
production environment I'd rather have a: "bad server no donut for
you" message, and a link to email the administrator, than the
exception page offered by tapestry (which btw really amused the user
acceptance testers :) )

Regards

On 8/31/06, andyhot <an...@di.uoa.gr> wrote:
> Vinicius Carvalho wrote:
> > Thanks that did the trick :)
> >
> > Regarding the exception, yeah, seems that tapestry captures all
> > runtime exceptions and wrap them inside ApplicationRuntimeException,
> > so my catch(ChatServerException) would never be executed :)
> So, are you catching ApplicationRuntimeExceptions now?
>
> You could probably have your own implementation of ListenerMethodInvoker
> that would let those exceptions pass through.
> >
> > Regards
> >
> > On 8/31/06, robertz@scazdl.org <ro...@scazdl.org> wrote:
> >> Depending on the complexity of your confirmation dialog, you can do
> >> something simple, too, like taking advantage of informal parameters. :)
> >> Something like:
> >> <a href="@DirectLink" ... onclick="return confirm('Are you sure you want
> >> to purge all elements?')">Purge</a>
> >>
> >>
> >> Robert
> >>
> >> > Vinicius Carvalho wrote:
> >> >> 1st: Is there an way to have an confirmation message for my
> >> >> DirectLink? Like showing an confirmation box "Are you sure you
> >> want to
> >> >> purge all elements?" and if ok, calling the link? I believe I need to
> >> >> use the ILinkRenderer for that, but I'm kinda confused yet, just need
> >> >> some suggestions :)
> >> > you can use an ILinkRenderer or check out the source of these
> >> components
> >> >
> >> http://tapfx.cvs.sourceforge.net/tapfx/tapfx-tapestry4/src/java/net/sf/tapfx/components/confirm/
> >>
> >> >>
> >> >> 2nd: Its related to my last post, does runtime exception get an
> >> >> special treatment by the framework? Is this why I can't capture them
> >> >> inside my EngineService?
> >> > To better understand, is the problem that
> >> >
> >> > chatListener.trigger does not throw any exceptions?
> >> >>
> >> >> My best regards
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> 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
> >> >
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > 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
>
>

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