Re: Ajax Exception Handling - How to use alerts component instead of different page.

2015-06-02 Thread Lance Java
This sounds quite specific to a single page, I'd use an event handler public void onException(Throwable cause) You can @Inject AlertManager to add alerts You can @Inject Request to test request.isXhr() You can @Inject AjaxResponseRenderer to update zones.

Ajax Exception Handling - How to use alerts component instead of different page.

2015-06-01 Thread Sumanth
Hi All, I would like to know how to use the component to show exceptions when "any" ajax related operation results in uncaught exception. Also is it possible to refresh all/selected zones in the page if the ajax operation resulted in exception? I'm trying to use the "Override Exception Report

Re: Error Exception Handling

2014-06-13 Thread Tsvetelin Saykov
Hi Shaikh Also you might want to check at www.jexbox.com This is an exception logging and management service with very straightforward integration with Tapestry using RequestExceptionHandler decoration (https://jexbox.com/connectors) Best wishes Tsvetelin On Wed, Jun 11, 2014 at 3:15 PM, Shai

Re: Error Exception Handling

2014-06-11 Thread George Christman
I'm using 5.4 and I believe all you need to do is add the following code to your AppModule and it will handle redirection to an error page when ever you have an exception in production mode. @Match("RequestExceptionHandler") @Order("after:requestExceptionHandler") public RequestExceptionHa

Error Exception Handling

2014-06-11 Thread Shaikh, Shahid
I am trying to have the Exception page shown in Tapestry when my GridDataSource throws an exception. How do i catch a ComponentEventException and have Tapestry redirect to the Exception page. Your help is much appreciated! Here is the logs.. org.mortbay.thread.QueuedThreadPool$PoolThread.run(Q

Exception Handling

2014-06-10 Thread Shaikh, Shahid
I am trying to have the Exception page shown in Tapestry when my GridDataSource throws an exception. How do i catch a ComponentEventException nad have Tapestry redirect to the Exception page. Your help is much appreciated! Here is the logs.. org.mortbay.thread.QueuedThreadPool$PoolThread.run(Q

Re: component event exception, handling in page with onException method

2014-02-14 Thread Chris Mylonas
g'day, please ignore the previous email. everything is working as expected now. a sleep, reboot and relocation to a more relaxing setting seems to be the way to fix this issue :) chris On Fri, Feb 14, 2014 at 8:53 PM, Chris Mylonas wrote: > hi users, > > i'm having trouble catching a componen

component event exception, handling in page with onException method

2014-02-14 Thread Chris Mylonas
hi users, i'm having trouble catching a component event exception. it's on a zone update. at this stage in development, i want to catch it and just reload the page Object onException(Throwable cause) { String message = cause.getMessage(); logger.info("BASTARD"); retu

Re: How to implement simple error/exception handling

2013-08-22 Thread Martin Kersten
This is outside the scope of Tapestry (or at least as far as I am aware off). Take a look at this example: http://jumpstart.doublenegative.com.au/jumpstart/together/easycrud/persons If you hit the Delete on any row it opens a modal dialog asking you whether or not the item should be really delete

How to implement simple error/exception handling

2013-08-22 Thread nn kk
Hi, I read about exceptions and error handling in tapestry, but still can not find the best way, to send messages to front-end. I want to be able to send exception messages and error codes, as I can do it in jquary ajax success or error blocks. When I throw some custom exception I don't want to

Re: exception handling

2013-08-21 Thread Thiago H de Paula Figueiredo
On Wed, 21 Aug 2013 10:47:35 -0300, nn kk wrote: Hi, Hi! I want to create my custom exception handling, I saw there are a few ways to replace the Exception Report Page or override the RequestExceptionHandler and again replace the default page. But is it possible to handle only

Re: exception handling

2013-08-21 Thread Lenny Primak
Take a look at Tynamo tapestry-exceptionpage module. http://docs.codehaus.org/display/TYNAMO/tapestry-exceptionpage+guide On Aug 21, 2013, at 9:47 AM, nn kk wrote: > Hi, > I want to create my custom exception handling, I saw there are a few ways to > replace the Exception Repor

exception handling

2013-08-21 Thread nn kk
Hi, I want to create my custom exception handling, I saw there are a few ways to replace the Exception Report Page or override the RequestExceptionHandler and again replace the default page. But is it possible to handle only specific type of exceptions, or exceptions from specific pages or

Re: graceful exception handling - user interface

2013-03-23 Thread Bryan Lewis
It sounds like this might be helpful: http://tapestry.apache.org/overriding-exception-reporting.html On Sat, Mar 23, 2013 at 9:34 AM, Ken in Nashua wrote: > I guess I am wondering if i can catch these exceptions in a centralized > place and just present the most meaningful text in a popup dialo

RE: graceful exception handling - user interface

2013-03-23 Thread Ken in Nashua
I guess I am wondering if i can catch these exceptions in a centralized place and just present the most meaningful text in a popup dialog for the user to acknowledge and keep the page user interface intact.

graceful exception handling - user interface

2013-03-22 Thread Ken in Nashua
Hi Folks, Well I am about to embark on going public with a hockey league web site and I wanted to reformat these intimidating (well not for developers) for end-users... stack traces when an exception occurs. And its nice to be able to use tapestry in such a fashionable way now and the supported

Re: Joining tapestry exception handling

2012-05-12 Thread Felix Gonschorek
lso have the logging system send the emails. Log4j can handle > this quite easily. > On May 11, 2012 7:35 AM, "Dmitry Gusev" wrote: > >> Try this: >> >> http://tapestry.apache.org/overriding-exception-reporting.html >> >> On Fri, May 11, 2012 at 3:21

Re: Joining tapestry exception handling

2012-05-12 Thread Bob Harner
t;wrote: > > > I need advice how to execute my code during tapestry exception handling. > > > > > > Current: > > 1. Something wrong has happen and tapestry shows exception page > > 2. error is logged in container' log > > > > My use case: > &

Re: Joining tapestry exception handling

2012-05-11 Thread Dmitry Gusev
Try this: http://tapestry.apache.org/overriding-exception-reporting.html On Fri, May 11, 2012 at 3:21 PM, jeczmien wrote: > I need advice how to execute my code during tapestry exception handling. > > > Current: > 1. Something wrong has happen and tapestry shows exception pag

Joining tapestry exception handling

2012-05-11 Thread jeczmien
I need advice how to execute my code during tapestry exception handling. Current: 1. Something wrong has happen and tapestry shows exception page 2. error is logged in container' log My use case: 1. Something wrong has happen and tapestry shows exception page 2. error is logged in cont

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
Good thing, that's one way to set things up and I've used it myself but it only goes half way. The even better idea (if I say so myself) is to use Tynamo's (and in the future core Tapestry) tapestry-exceptionpage module for mapping exceptions directly to error pages (see http://tynamo.org/tapestry-

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
Hi Kalle, yes I managed finally track down the answer after searching through pages of search results, unfortunately my original search query included the terms "tomcat", "tapestry" and "error" which produces reams of result (most of them irrelevant)! Like you mentioned in your reply I needed to

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
Are you setting an error code to your response? You haven't configured the filter to handle error dispatches: app /* REQUEST ERROR Error handling in Jetty and Tomcat differ, see http://www.cacoethes.co.uk/blog/softwa

Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
Hi all, I'm sure I'm not the first person to experience this issue but can't seem to find any answers in the mail archive or on the web. I have an ExceptionReport page implementing ExceptionReporter so any nasty surprises like NPE's result in a nice and friendly "We experiencing technical difficul

Re: [TYNAMO] Exception Handling

2011-11-24 Thread Nicolas Barrera
got it, same as me. Nicolás.-

Re: [TYNAMO] Exception Handling

2011-11-24 Thread Lenny Primak
** ** THIS IS A WARNING MESSAGE ONLY ** ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** ** The original message was received at Wed, 22 Jun 2011 08:26:07 -0400 from user-0cdfs5f.cable.mindspri

Re: [TYNAMO] Exception Handling

2011-11-24 Thread Lenny Primak
The Tynamo list has never worked for me. It seems that it works for some users and not others. I get a bounced E-mail when I send it to the tynamo list. On Nov 24, 2011, at 1:36 PM, Nicolas Barrera wrote: > Hi Ale, > > thanks for the help, so you say that tynamo's mailing list should be > work

Re: [TYNAMO] Exception Handling

2011-11-24 Thread Nicolas Barrera
Hi Ale, thanks for the help, so you say that tynamo's mailing list should be working alright but just for moment to moment is down? then i 'll be retrying to post there. About what you answered me... i 've finally avoided the problem overriding the isAllowRemove method calling one of the bean's

Re: [TYNAMO] Exception Handling

2011-11-24 Thread Alejandro Scandroli
Hi Nicolás > > - Am I obliged to make a custom page in order to catch up that exception > and show the user a friendly message? (something like "hey!, you can't > delete this locality as it's referenced by other persons") > No really, you can catch the exception in your own Show.java page over

Re: [TYNAMO] Exception Handling

2011-11-23 Thread Nicolas Barrera
Hi, I went for customizing the Location page, generated a pages/show/LocalityShow.java and .tml the tml I copied it from the Show.tml file and the .java I overrided the following methods: public Class getType() { > public Link onActionFromDelete() { > public boolean isAllowRemove()

[TYNAMO] Exception Handling

2011-11-23 Thread Nicolas Barrera
Hi all, (sorry I 'm asking about tynamo on Tapestry's user list but I tried to use us...@tynamo.codehaus.org but mailer said it wasn't working) Here goes a newbie question runner up...: I got a tynamo app working using the archetype and then modifying it, I got two model classes - Person - Local

Re: tynamo exception handling doesn't work in setupRender?

2010-08-31 Thread Kalle Korhonen
File a (Tynamo) issue and I'll take a look. Kalle On Tue, Aug 31, 2010 at 6:31 PM, Paul Stanton wrote: > I'm using the Tynamo tapestry-exception module, and for the most part it > works great, however I've noticed that it doesn't seem to work for > exceptions thrown during a 'setupRender' event

tynamo exception handling doesn't work in setupRender?

2010-08-31 Thread Paul Stanton
I'm using the Tynamo tapestry-exception module, and for the most part it works great, however I've noticed that it doesn't seem to work for exceptions thrown during a 'setupRender' event handler. These exceptions are wrapped in a 'RenderQueueException' and load in the normal tapestry exception

Re: Blog post about T5 exception handling on GAE

2010-08-27 Thread Dmitry Gusev
Have you looked at the link I've posted in my first message? :) I know I can override the error page. But I like the default one. I just don't like its default behavior which only relies on PRODUCTION_MODE symbol. What I suggest is to change this behavior and analyze if the user that get this exce

Re: Blog post about T5 exception handling on GAE

2010-08-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Aug 2010 09:13:41 -0300, Dmitry Gusev wrote: Yes, I should say test. I didn't mean running java debugger. I mean trying to reproduce some test case using browser and getting exception page. You can override the error page (which I recommend, anyway), use the logic you want for

Re: Blog post about T5 exception handling on GAE

2010-08-27 Thread Dmitry Gusev
Yes, I should say test. I didn't mean running java debugger. I mean trying to reproduce some test case using browser and getting exception page. On Fri, Aug 27, 2010 at 16:10, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 27 Aug 2010 08:50:16 -0300, Dmitry Gusev > wrote: >

Re: Blog post about T5 exception handling on GAE

2010-08-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Aug 2010 08:50:16 -0300, Dmitry Gusev wrote: There might be another issue though, what if I need to debug application behavior in production mode? I can't think why you cannot debug the application in production mode in the same way you do in non-production mode. Debugging is a

Re: Blog post about T5 exception handling on GAE

2010-08-27 Thread Dmitry Gusev
> This means you will never need to set it for a release as the default is > "true". Hope this helps. > > Regards, > Jim. > > -Original Message- > From: Dmitry Gusev [mailto:dmitry.gu...@gmail.com] > Sent: 27 August 2010 08:54 > To: Tapestry users &g

RE: Blog post about T5 exception handling on GAE

2010-08-27 Thread Jim O'Callaghan
y.gu...@gmail.com] Sent: 27 August 2010 08:54 To: Tapestry users Subject: Blog post about T5 exception handling on GAE FYI http://dmitrygusev.blogspot.com/2010/08/gae-and-tapestry5-exception-handling .html One thing I'd like T5 have though is something like in RemoteOnly mode in ASP.NET.

Blog post about T5 exception handling on GAE

2010-08-27 Thread Dmitry Gusev
FYI http://dmitrygusev.blogspot.com/2010/08/gae-and-tapestry5-exception-handling.html One thing I'd like T5 have though is something like in RemoteOnly mode in ASP.NET. http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx RemoteOnly Specifies that custom errors are shown only to the remote > c

Re: Exception handling

2010-03-08 Thread Peter Stavrinides
/email.html for important additional terms relating to this e-mail. - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Monday, 8 March, 2010 15:21:45 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Exception handling On Mo

Re: Exception handling

2010-03-08 Thread Thiago H. de Paula Figueiredo
On Mon, 08 Mar 2010 05:40:50 -0300, Peter Stavrinides wrote: Hi everyone, Hi! So my question is what approach can I take to intercept *only these exceptions that don't make it to the page. Create your own error page. It must implement the ExceptionReporter interface. Set the tapestry

Exception handling

2010-03-08 Thread Peter Stavrinides
Hi everyone, I am having a problem with the following scenario: - A page renders a grid with a number of links - Clicking one of those links causes the page to re-render, but it breaks with the following exception: ERROR com.test.CoreModule.SiteRequestExceptionHandler Render queue error in Be

Re: Exception handling after violation of unique constraint

2009-09-13 Thread Geoff Callender
Agreed. Any number of exceptions can occur when you commit, regardless of what queries you've run in the same transaction. That's the nature of multi-user systems, unless of course you want to set the transaction isolation level to serialize (not usually recommended). As for using onValida

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Hilco Wijbenga
2009/9/12 Thiago H. de Paula Figueiredo : > Em Sat, 12 Sep 2009 17:38:43 -0300, Bruno Santos > escreveu: > >> Well, even if i do: >> >> league = new League(); >> league.setName("repeated name"); > > Unique constraints like this should be checked by you *before* sending an > insert or update to the

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Thiago H. de Paula Figueiredo
Em Sat, 12 Sep 2009 17:38:43 -0300, Bruno Santos escreveu: Well, even if i do: league = new League(); league.setName("repeated name"); Unique constraints like this should be checked by you *before* sending an insert or update to the database. -- Thiago H. de Paula Figueiredo Independen

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Bruno Santos
Well, even if i do: league = new League(); league.setName("repeated name"); I still have same problem, even without that piece of code. Everything works fine with Create/Update of entity if saveorupdate doesn't violate any constraint. On Sat, Sep 12, 2009 at 7:34 PM, Kalle Korhonen wrote: > Y

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Kalle Korhonen
Yes, but the problem originates from this: if (entity.getId().longValue() == 0l) { league.setId(null); } You can't make that league object a new entity just by nullifying it's id. Try creating a new league if you need to. Later on, since the save

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Bruno Santos
The question is i'm not trying to flush anything, i do (through DAO) session.saveOrUpdate, catch the exception and the only thing i do besides registering the error on the form is returning this (the page i'm at) wich causes (i guess) tapestry to query database to fill data for selectmodels. And, a

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
On Fri, Sep 11, 2009 at 7:26 PM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 11 Sep 2009 23:11:59 -0300, Kalle Korhonen > escreveu: > I think onValidate() is for validation, the data store should only be > changed (or attepted to be changed) when validation succeeds and controller > classes (b

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Sep 2009 23:11:59 -0300, Kalle Korhonen escreveu: Interesting - I happen to think it's a great pattern to follow. You try to save and then roll back if it didn't work out - that's what the transaction management is for and Tapestry gives you a very nice way to accomplish this easil

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
On Fri, Sep 11, 2009 at 3:05 PM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 11 Sep 2009 18:30:34 -0300, Bruno Santos > IMHO, you have to write code to do that (query the database if needed) Well that doesn't do anything else except merely lowers the probability. > intead of sending data to

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Kalle Korhonen
I'm using the plain hibernate Session (shadow) and the pattern works great for me. But I think your problem is actually in "(don't flush the Session after an exception occurs)". You are doing something odd since you need to nullify the id. For a new object, the id should normally be null. Tapestry

Fwd: Exception handling after violation of unique constraint

2009-09-11 Thread Bruno Santos
Hit wrong button i guess, sent message only to Sven. Sorry -- Forwarded message -- From: Bruno Santos Date: Fri, Sep 11, 2009 at 11:19 PM Subject: Re: Exception handling after violation of unique constraint First i like to thank you (both) for your patience and help. Well, not

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Sep 2009 18:30:34 -0300, Bruno Santos escreveu: Hello, Hi! Well, the reason should be that with persist in validate() i validate that the entity that's inserted doesn't conflict with any database constraint like in this case and the onsucess isn't fired wich in the case a const

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Bruno Santos
Hello, Well, the reason should be that with persist in validate() i validate that the entity that's inserted doesn't conflict with any database constraint like in this case and the onsucess isn't fired wich in the case a constraint is violated it doesn't seem to make sense. Anyway, even if i use

Re: Exception handling after violation of unique constraint

2009-09-11 Thread Sven Homburg
what is your reason, that you want to persist the enity in the validation event? i think its more clear to persist it in the onSuccess event method with regards Sven Homburg Founder of the Chenille Kit Project http://www.chenillekit.org 2009/9/11 Bruno Santos > Thanks for your answer, i lea

Exception handling after violation of unique constraint

2009-09-11 Thread Bruno Santos
Thanks for your answer, i learned a bit more of tapestry. Now i have one more problem, not exactly related but in the same area. I have void onValidateForm() { if (entity.getId().longValue() == 0l) { league.setId(null); }

Re: Exception handling + @CommitAfter

2009-09-10 Thread Kalle Korhonen
You should instead try storing it onValidate. If it fails, you should record an error and if it succeeds you should commit only in onSuccess (but the method body can be otherwise empty). Kalle On Thu, Sep 10, 2009 at 2:55 PM, Bruno Santos wrote: > Good evening, > > I have a form using a zone an

Exception handling + @CommitAfter

2009-09-10 Thread Bruno Santos
Good evening, I have a form using a zone and i have @CommitAfter on the onSubmitFromEntityForm() @CommitAfter Object onSubmitFromEntityForm() { try { entityDao.persist(entity); } catch (exception ex) { // handle exception } } altough i'm handling the exception the @CommitAfter creates

Re: T5: Exception Handling

2008-05-20 Thread Leon Derks
edibly powerful and easy to use. Hope this helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: Exception Handling Hello

Re: T5: Exception Handling

2008-05-19 Thread Andreas Andreou
- Original Message > From: Thiago HP <[EMAIL PROTECTED]> > To: Tapestry users > Sent: Monday, 19 May, 2008 2:52:02 PM > Subject: Re: T5: Exception Handling > > On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: >> To configure: >> You would s

Re: T5: Exception Handling

2008-05-19 Thread Toby Hobson
essage From: Thiago HP <[EMAIL PROTECTED]> To: Tapestry users Sent: Monday, 19 May, 2008 2:52:02 PM Subject: Re: T5: Exception Handling On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > To configure: > You would simply use a standard JSP / HTML error page, and wir

Re: T5: Exception Handling

2008-05-19 Thread Thiago HP
On 5/19/08, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Now why hadn't I thought of that... :D Sometimes, a solution is so simple that we unconciously search for more complicated ones . . . :) > Thanks! You're welcome! -- Thiago -

Re: T5: Exception Handling

2008-05-19 Thread Filip S. Adamsen
Now why hadn't I thought of that... :D Thanks! -Filip Thiago HP skrev: On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: To configure: You would simply use a standard JSP / HTML error page, and wire it in your web.xml. I am using Tomcat and it works great... works on Jetty too. Som

Re: T5: Exception Handling

2008-05-19 Thread Filip S. Adamsen
rself a bit more with Tapestry's error reporting mechanisms, which imho are incredibly powerful and easy to use. Hope this helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19

Re: T5: Exception Handling

2008-05-19 Thread Thiago HP
On 5/19/08, Peter Stavrinides <[EMAIL PROTECTED]> wrote: > To configure: > You would simply use a standard JSP / HTML error page, and wire it in your > web.xml. I am using Tomcat and it works great... works on Jetty too. Something I've done once is to setup a 404.html page that redirects to a Ta

Re: T5: Exception Handling

2008-05-19 Thread Peter Stavrinides
2008 1:39:31 AM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: T5: Exception Handling Hi Leon, How to override server error pages depends on what server you're using. As far as I'm aware it's unfortunately not possible to use Tapestry pages as server error p

Re: T5: Exception Handling

2008-05-19 Thread Leon Derks
ry's error reporting mechanisms, which imho are incredibly powerful and easy to use. Hope this helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucha

Re: T5: Exception Handling

2008-05-17 Thread Filip S. Adamsen
ot;Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: Exception Handling Hello What is the best way to handle exceptions in Tapestry 5? I want to show some kind of general erro

Re: T5: Exception Handling

2008-05-16 Thread Leon Derks
are incredibly powerful and easy to use. Hope this helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: Exception Handlin

Re: T5: Exception Handling

2008-05-16 Thread Peter Stavrinides
is helps, Peter - Original Message - From: "Leon Derks" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, 16 May, 2008 1:35:19 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: Exception Handling Hello What is the best way to handle exceptions in

T5: Exception Handling

2008-05-16 Thread Leon Derks
Hello What is the best way to handle exceptions in Tapestry 5? I want to show some kind of general error page, when an exception occurs. At the moment I have a onException method in my BasePage class. But for some reason the Error page is not returned. What is the way in T5 to handle exceptio

Re: Application Exception handling

2007-03-13 Thread Jesse Kuhnert
I think most the exception infrastructure is focused around building up location / context information more so than exception types, though types are handled as well of course.. . If you want to know how tapestry handles it right now take a look at: http://svn.apache.org/viewvc/tapestry/tapestry

Application Exception handling

2007-03-08 Thread Justin Walsh
Is there a preferred way/pattern of handling application exceptions in a tapestry application. For example, I have a page, AuthorizationFailure.html which I want to display when a javax.ejb.EJBAccessException is thrown from the ejb layer, with a custom message etc. At the moment I'm plugging in my

Re: bypassing the normal exception handling

2006-11-13 Thread Jesse Kuhnert
Throw a RuntimeException instead of ApplicationRuntimeException ? On 11/13/06, Dan Adams <[EMAIL PROTECTED]> wrote: I have a page where if there is an exception I actually want it to bubble up all the way to the container so that a 500 error is displayed. Anyone know how to do that? -- Dan Ada

bypassing the normal exception handling

2006-11-13 Thread Dan Adams
I have a page where if there is an exception I actually want it to bubble up all the way to the container so that a 500 error is displayed. Anyone know how to do that? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857