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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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
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
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:
> &
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
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
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-
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
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
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
got it,
same as me.
Nicolás.-
**
** 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
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
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
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
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()
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
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
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
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
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
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:
>
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
> 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
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.
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
/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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);
}
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
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
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
- 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
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
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
-
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
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
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
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
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
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
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
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
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
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
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
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
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
77 matches
Mail list logo