You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Surya Prakash <Su...@mediasurface.com> on 2005/07/01 12:48:25 UTC
Tacos partial components and error handling
Hi,
I am using Tacos partial components and they are working fine but one
problem, if I get an error on the server side how do I report them back
to the user? Is there any function available within them, so that
errors can be trapped and reported back to user?
Any help is appreciated.
Thanks in advance.
Surya
Re: Tacos partial components and error handling
Posted by Viktor Szathmary <ph...@gmail.com>.
On 7/1/05, Surya Prakash <Su...@mediasurface.com> wrote:
>
> I am using Tacos partial components and they are working fine but one
> problem, if I get an error on the server side how do I report them back
> to the user? Is there any function available within them, so that
> errors can be trapped and reported back to user?
there are two kinds of errors you can handle: http communication
error, or application level errors (the ones resulting in tapestry
exception pages). Application errors get rendered as a full page. For
http communication errors, you can register additional error handling
code in javascript for PartRequest and PartPost, something like:
PartPost.after("failed", function() {
// your code here
});
for more info, see the source of net/sf/tacos/partial/Partial.js
regards,
viktor
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org