Re: Component.getPage() and Exception Handling

2020-08-25 Thread Daniel Weiss
aniel Am 24.08.2020 um 17:07 schrieb Sven Meier: Hi, I didn't understand what's your problem. Sven On 24.08.20 16:56, Daniel Weiss wrote: Hello all, I don't like the exception handling of Component.getPage(). We are working on the integration to Wicket 8.4. We use panels or dialog

Re: Component.getPage() and Exception Handling

2020-08-24 Thread Sven Meier
Hi, I didn't understand what's your problem. Sven On 24.08.20 16:56, Daniel Weiss wrote: Hello all, I don't like the exception handling of Component.getPage(). We are working on the integration to Wicket 8.4. We use panels or dialogs as anonymous classes / instances and this feature

Component.getPage() and Exception Handling

2020-08-24 Thread Daniel Weiss
Hello all, I don't like the exception handling of Component.getPage(). We are working on the integration to Wicket 8.4. We use panels or dialogs as anonymous classes / instances and this feature will blocked us to redefine a parent component or page. In fact (I think ..) we don't need

RE: Exception handling wicket 8

2019-02-18 Thread HOPPAN Matúš
Thanks for fast response, ive created quickstart and attached it to JIRA issue https://issues.apache.org/jira/browse/WICKET-6637 Matus -Original Message- From: Martin Grigorov Sent: Monday, February 18, 2019 1:49 PM To: users@wicket.apache.org Subject: Re: Exception handling wicket 8

Re: Exception handling wicket 8

2019-02-18 Thread Martin Grigorov
Hi, Sounds like a bug in Wicket. If you can reproduce it in a quickstart (mini) application then please attach it to a ticket in JIRA! Thanks! On Mon, Feb 18, 2019 at 2:45 PM HOPPAN Matúš wrote: > Hi, > > recently we have upgraded our application, from wicket 7.11 to wicket > 8.3.0. > With

Exception handling wicket 8

2019-02-18 Thread HOPPAN Matúš
Hi, recently we have upgraded our application, from wicket 7.11 to wicket 8.3.0. With wicket 7 everything seemed to be fine, however in wicket 8 we have an issue with handling exception. In Application we have in init() method: getRequestCycleListeners().add(new

Re: Exception Handling (ajax)

2016-03-09 Thread Sven Meier
rn new ErrorCodeRequestHandler(500, message) from there. No need to fiddle with IExceptionMapper and/or DefaultExceptionMapper. Have fun Sven On 09.03.2016 09:33, Lars Törner wrote: About exception handling I would like a fallback for unexcpected exceptions that are thrown during ajax-calls. I

Re: Exception Handling (ajax)

2016-03-09 Thread Lars Törner
tHandler(500, message) from there. > No need to fiddle with IExceptionMapper and/or DefaultExceptionMapper. > > Have fun > Sven > > > > > On 09.03.2016 09:33, Lars Törner wrote: > >> About exception handling >> >> I would like a fallback for unexcpected exceptions th

Re: Exception Handling (ajax)

2016-03-09 Thread Sven Meier
09:33, Lars Törner wrote: About exception handling I would like a fallback for unexcpected exceptions that are thrown during ajax-calls. I don't want to redirect to a new page so in my application#init I do: getExceptionSettings().setAjaxErrorHandlingStrat

Exception Handling (ajax)

2016-03-09 Thread Lars Törner
About exception handling I would like a fallback for unexcpected exceptions that are thrown during ajax-calls. I don't want to redirect to a new page so in my application#init I do: getExceptionSettings().setAjaxErrorHandlingStrategy(AjaxErrorStrategy.INVOKE_FAILURE_HANDLER); For the moment I

Re: Exception handling in AutoCompleteTextField

2016-01-12 Thread Rakesh A
.1842946.n4.nabble.com/Exception-handling-in-AutoCompleteTextField-tp4673192p4673272.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Exception handling in AutoCompleteTextField

2016-01-08 Thread Martin Grigorov
<http://apache-wicket.1842946.n4.nabble.com/file/n4673192/autocomplete.7z> > > Regards, > Rakesh.A > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Exception-handling-in-AutoCompleteTextField-tp

Exception handling in AutoCompleteTextField

2016-01-06 Thread Rakesh A
946.n4.nabble.com/Exception-handling-in-AutoCompleteTextField-tp4673192.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: u

Ajax exception handling on client side

2014-05-30 Thread Andre Camilo
Hi, How can I handle exceptions occurred at the server side on the client side (with Ajax requests)? At the client side, the javascript event ' /ajax/call/failure' is only fired when the connection fails (I think), but when the there's an unhandled exception on the server side, the events '

Re: Ajax exception handling on client side

2014-05-30 Thread Martin Grigorov
Hi, See org.apache.wicket.settings.IExceptionSettings#setAjaxErrorHandlingStrategy Martin Grigorov Wicket Training and Consulting On Fri, May 30, 2014 at 12:46 PM, Andre Camilo andre.cam...@premium-minds.com wrote: Hi, How can I handle exceptions occurred at the server side on the client

onInitialize() and exception handling

2014-04-29 Thread Alberto Brosich
Hi, I have a wicket application where I create page components (mainly labels and ListViews) using onInitialize() method of some panels I have in every page. In some cases, during the creation of the components, some exceptions can occur (for example if the content is downloaded from a

Re: onInitialize() and exception handling

2014-04-29 Thread Francois Meillet
You can throw any exception that extends RuntimeException François Meillet Formation Wicket - Développement Wicket Le 29 avr. 2014 à 14:35, Alberto Brosich abros...@ogs.trieste.it a écrit : Hi, I have a wicket application where I create page components (mainly labels and ListViews)

Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Tom Götz
Hi there, we’d like to implement a centralized exception handling strategy for backend/service calls from with within Wicket components. Therefor I thought it could be a good idea to do this in a custom org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException implementation

Re: Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Martin Grigorov
a centralized exception handling strategy for backend/service calls from with within Wicket components. Therefor I thought it could be a good idea to do this in a custom org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException implementation. Depending on the caught exception we’d

Re: Central exception handling using a custom RequestCycleListener

2014-02-19 Thread Tom Götz
Wicket Training and Consulting On Wed, Feb 19, 2014 at 5:53 PM, Tom Götz t...@decoded.de wrote: Hi there, we’d like to implement a centralized exception handling strategy for backend/service calls from with within Wicket components. Therefor I thought it could be a good idea to do

Wicket LoadableDetachableModel exception handling issue

2013-02-20 Thread Jayakrishnan R
In my project, I am using LoadableDetachableModel as given below. public ReportPage(final Objectm, final PageReference pr) throws CustomException{try{final LoadableDetachableModelListMaintReport ldm = new LoadableDetachableModelListMaintReport() { @Override

Re: Wicket LoadableDetachableModel exception handling issue

2013-02-20 Thread Ondrej Zizka
How about wrapping it to a RuntimeException, or preferably, your own subclass of it? Ondra On 02/20/2013 04:51 PM, Jayakrishnan R wrote: In my project, I am using LoadableDetachableModel as given below. public ReportPage(final Objectm, final PageReference pr) throws

Re: Wicket LoadableDetachableModel exception handling issue

2013-02-20 Thread Jayakrishnan R
i have already done that as a back up plan. Do you think wicket is a bit wierd in handling exceptions. On 20 Feb 2013 16:22, Ondrej Zizka ozi...@redhat.com wrote: How about wrapping it to a RuntimeException, or preferably, your own subclass of it? Ondra On 02/20/2013 04:51 PM,

Re: Wicket LoadableDetachableModel exception handling issue

2013-02-20 Thread Ondrej Zizka
Actually I think Wicket offers, inherently, one of the best ways to handle exceptions - I can catch it wherever I want, rewrap, redirect, ignore, alter the model... I haven't seen such freedom and versatility in any other web framework. YMMV. Ondra On 02/20/2013 05:39 PM, Jayakrishnan R

Re: Exception handling and testing

2012-09-27 Thread Martin Grigorov
Make the TabbedPanel stateless by using BookmarkablePageLink. P.S. Please start a new thread when you have new questions. On Wed, Sep 26, 2012 at 10:56 PM, Alec Swan alecs...@gmail.com wrote: Thanks, that worked as advertised. Now I am wondering if it's possible to get this to work when the

Re: Exception handling and testing

2012-09-27 Thread Alec Swan
Thanks, works great. I just needed to convert IRequestParameters to PageParameters in RequestHandler#onException() in order to remember the tab selection made by the user throughout login. Is there a convenience method somewhere in wicket to convert between IRequestParameters and PageParameters?

Re: Exception handling and testing

2012-09-26 Thread Martin Grigorov
You have to return a IRequestHandler. See RenderPageRequestHandler On Wed, Sep 26, 2012 at 1:45 AM, Alec Swan alecs...@gmail.com wrote: I am trying to implement Martin's @SubSite annotation approach to redirect the user to the sub-site's home page when AuthenticationException is thrown in

Re: Exception handling and testing

2012-09-26 Thread Alec Swan
Thanks, that worked as advertised. Now I am wondering if it's possible to get this to work when the user click on a tab in TabbedPanel? RenderPageRequestHandler(new PageProvider(HomePage.class), ALWAYS_REDIRECT) seems to lose the knowledge of the tab selected by the user and redirects the user to

Re: Exception handling and testing

2012-09-25 Thread Alec Swan
I am trying to implement Martin's @SubSite annotation approach to redirect the user to the sub-site's home page when AuthenticationException is thrown in Wicket 1.5. However, apparently I cannot throw a RestartResponseAtInterceptPageException(annotation.homePage()) from

Re: exception handling (get cause page)

2012-09-04 Thread Alfonso Quiroga
It works perfectly thanks On Mon, Sep 3, 2012 at 3:11 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java Register it, then use it:

exception handling (get cause page)

2012-09-03 Thread Alfonso Quiroga
Hi! I have a custom exception handler, and I have this method: onException(RequestCycle cycle, Exception anException) { } Inside this method, how can I get the original page who caused the exception? in other Wicket version, I had onRuntimeException method, who already had the original

Re: exception handling (get cause page)

2012-09-03 Thread Martin Grigorov
Hi, See https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/request/cycle/PageRequestHandlerTracker.java Register it, then use it: PageRequestHandlerTracker.getLastHandler(cycle).getPage() On Mon, Sep 3, 2012 at 8:00 PM, Alfonso Quiroga

Re: Exception handling and testing

2012-06-08 Thread Alec Swan
That's clever. I will give it a try. What is the recommendation on verifying that an exception was thrown during page rendering using Wicket tester? I am not talking just about authentication here, but exceptions in general. Thanks, Alec On Thu, Jun 7, 2012 at 6:18 PM, Martin Grigorov

Re: Exception handling and testing

2012-06-08 Thread Michal Margiel
2012/6/8 Alec Swan alecs...@gmail.com That's clever. I will give it a try. What is the recommendation on verifying that an exception was thrown during page rendering using Wicket tester? I am not talking just about authentication here, but exceptions in general. Hello, Why you want to

Re: Exception handling and testing

2012-06-08 Thread Alec Swan
I also use this approach, but with authentication exceptions thrown by Wicket it's hard to tell if the user was redirected to Login page because of authentication or some other exceptions. On Fri, Jun 8, 2012 at 1:15 PM, Michal Margiel michal.marg...@gmail.com wrote: 2012/6/8 Alec Swan

Re: Exception handling and testing

2012-06-07 Thread Martin Grigorov
Hi, You can use IAuthenticationStrategy and throw RestartResponseAtInterceptException. On Wed, Jun 6, 2012 at 8:09 PM, Alec Swan alecs...@gmail.com wrote: Hello, I am creating a new set of pages that are a part of an old project but have a different home page. It's kind of like a sub-site

Re: Exception handling and testing

2012-06-07 Thread Alec Swan
The problem is that I cannot verify this exception in tests. I am basically asking for best practices. Thanks! On Thu, Jun 7, 2012 at 1:30 AM, Martin Grigorov mgrigo...@apache.org wrote: Hi, You can use IAuthenticationStrategy and throw RestartResponseAtInterceptException. On Wed, Jun 6,

Re: Exception handling and testing

2012-06-07 Thread Alec Swan
I am also asking how to redirect to sub-site's home page when the user is not authenticated and tries to access on of those sub-site pages. On Thu, Jun 7, 2012 at 3:35 PM, Alec Swan alecs...@gmail.com wrote: The problem is that I cannot verify this exception in tests. I am basically asking for

Re: Exception handling and testing

2012-06-07 Thread Martin Grigorov
On Fri, Jun 8, 2012 at 12:37 AM, Alec Swan alecs...@gmail.com wrote: I am also asking how to redirect to sub-site's home page when the user is not authenticated and tries to access on of those sub-site pages. Use a custom IAuthenticationStrategy that knows which pages are part of this sub-site

Exception handling and testing

2012-06-06 Thread Alec Swan
Hello, I am creating a new set of pages that are a part of an old project but have a different home page. It's kind of like a sub-site within a site. The user is required to log in on the sub-site's home page to be able to access any of those pages. If the user tries to access any of these pages

Re: Exception Handling in 1.5

2011-11-17 Thread Nelson Segura
Hey, any idea how can I get the page/page class of the page that was being rendered when the exception happened? I was depending on that in 1.4 to determine the type of page I needed to return, for example if I am in the context of a modal window, I was showing a message in the window, and a close

Re: Exception Handling in 1.5

2011-11-17 Thread Igor Vaynberg
hrm. you cant yet. but you can check if you are in an ajax request or not by using webrequest.isajax() so you can implement that particular usecase without the page. -igor On Thu, Nov 17, 2011 at 1:19 PM, Nelson Segura nsegu...@gmail.com wrote: Hey, any idea how can I get the page/page class of

Re: Exception Handling in 1.5

2011-11-16 Thread Nelson Segura
Great. Thanks for your help. On Mon, Nov 14, 2011 at 7:06 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: application.getrequestcyclelisteners().add(new abstractrequestcyclelistener() {  irequsthandler onexception(e) {       Throwable cause = e;       if (cause instanceof

Exception Handling in 1.5

2011-11-14 Thread Nelson Segura
Hello, I am starting to migrate from 1.4 to 1.5. I am having problems trying to figure out exactly what is the best way to do the following. I have some custom exception and some custom pages for when the code throws those exception. In 1.4 this seemed trivial. For example .. public class

Re: Exception Handling in 1.5

2011-11-14 Thread Igor Vaynberg
application.getrequestcyclelisteners().add(new abstractrequestcyclelistener() { irequsthandler onexception(e) { Throwable cause = e; if (cause instanceof WicketRuntimeException) { cause = cause.getCause(); } if (cause instanceof InvocationTargetException)

[Migration 1.5]: exception handling in request cycle

2011-07-19 Thread Alexandros Karypidis
must create a class implementing IRequestCycleListener 2) I must bind my listener during application init() with getRequestCycleListeners().add(...); My problem is that previously when we extended the WebRequestCycle, we would preserve the default exception handling by using: @Override

Re: [Migration 1.5]: exception handling in request cycle

2011-07-19 Thread Martin Grigorov
() with getRequestCycleListeners().add(...); My problem is that previously when we extended the WebRequestCycle, we would preserve the default exception handling by using:    @Override    public Page onRuntimeException(Page page, RuntimeException e) {        return super.onRuntimeException(page, e

Re: [Migration 1.5]: exception handling in request cycle

2011-07-19 Thread Alexandros Karypidis
request listener implementation (indicating that you may return null). Finally, I added a link to the page you directed me to in the Exception Handling section immediately afterwards which only mentioned the exception mapper. This should help one find that the mapper is used only in case all

Exception handling for components inside a page

2010-10-01 Thread Rui Fernando Hayashi
I have a Wicket page which is a dashboard composed of a number of panels. The actual panels are only known in runtime and are added to a RepeatingView. That's because I have a modular application, and each module can contribute panels to the dashboard. The modularity issue is well solved and

Re: Exception handling for components inside a page

2010-10-01 Thread Igor Vaynberg
no, there isnt. exceptions that occur during render time are very hard to recover from. what you can do is place every panel into an iframe. -igor On Fri, Oct 1, 2010 at 7:14 AM, Rui Fernando Hayashi rui.haya...@tecsinapse.com.br wrote: I have a Wicket page which is a dashboard composed of a

Re: EXception handling in Wicket

2010-08-29 Thread Nitnatsnok
to it. Next you can update an element on page if it's AJAX or show this page again by returning updated page. You can get your ajax target this way: (AjaxRequestTarget)RequestCycle.get().getRequestTarget(). -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling

Re: EXception handling in Wicket

2010-08-29 Thread Nitnatsnok
failures information. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2399427.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: EXception handling in Wicket

2010-08-28 Thread Antoine van Wel
); -- View message @ http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340562.html To unsubscribe from EXception handling in Wicket, click here http://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl

Re: EXception handling in Wicket

2010-08-27 Thread arunarapole
); -- View message @ http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340562.html To unsubscribe from EXception handling in Wicket, click herehttp://apache-wicket.1842946.n4.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_codenode=2340439code

EXception handling in Wicket

2010-08-26 Thread arunarapole
any one Thank you Aruna -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340439.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: EXception handling in Wicket

2010-08-26 Thread Nitnatsnok
IRequestCycleProcessor newRequestCycleProcessor() { That's it. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340560.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: EXception handling in Wicket

2010-08-26 Thread Nitnatsnok
Oh, also I set not to show Error Page on exception in WebApplication: getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_NO_EXCEPTION_PAGE); -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/EXception-handling-in-Wicket-tp2340439p2340562.html

Exception handling

2009-11-15 Thread Wojtek
Hi there, I'd like to find out how the development mechanism of exception handling works. It displays stacktrace from exception thrown, so it means it has access to the Exception object. I would like to implement similar feature, to display at least the message from the exception to the end

Re: Exception handling

2009-11-15 Thread Jeremy Thomerson
) { return super.onRuntimeException(page, e); } }; } -- Jeremy Thomerson http://www.wickettraining.com 2009/11/15 Wojtek zabia...@gmail.com Hi there, I'd like to find out how the development mechanism of exception handling works. It displays stacktrace from

Re: Exception handling

2009-11-15 Thread Wojtek
the development mechanism of exception handling works. It displays stacktrace from exception thrown, so it means it has access to the Exception object. I would like to implement similar feature, to display at least the message from the exception to the end user. Could you tell me how to do it or point

exception handling for session dependent URLs

2009-02-16 Thread Michael Sparer
this message in context: http://www.nabble.com/exception-handling-for-session-dependent-URLs-tp22037821p22037821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: exception handling for session dependent URLs

2009-02-16 Thread Igor Vaynberg
. a PageExpiredException instead of IllegalStateExceptions? Michael - Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/exception-handling-for-session-dependent-URLs-tp22037821p22037821.html Sent from the Wicket - User mailing list

Re: exception handling for session dependent URLs

2009-02-16 Thread Michael Sparer
/exception-handling-for-session-dependent-URLs-tp22037821p22037821.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: exception handling for session dependent URLs

2009-02-16 Thread Igor Vaynberg
- Michael Sparer http://techblog.molindo.at -- View this message in context: http://www.nabble.com/exception-handling-for-session-dependent-URLs-tp22037821p22037821.html Sent from the Wicket - User mailing list archive at Nabble.com

Custom Domain Exception Handling

2009-02-05 Thread walnutmon
this message in context: http://www.nabble.com/Custom-Domain-Exception-Handling-tp21851678p21851678.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: Custom Domain Exception Handling

2009-02-05 Thread Igor Vaynberg
: http://www.nabble.com/Custom-Domain-Exception-Handling-tp21851678p21851678.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: How to make a popup page for exception handling?

2009-01-28 Thread Mo Wu
Hi my wicket friends, There is fast way to make the popup for exception handling: try { ... } catch (Exception e){ target.appendJavascript(String.format(alert('%s'), e)); } and AjaxSubmitLink is used. -Mo Wu Michael O'Cleirigh wrote

Re: How to make a popup page for exception handling?

2009-01-22 Thread Mo Wu
(); } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21600597.html Sent from

Re: How to make a popup page for exception handling?

2009-01-22 Thread Newgro
on. HTH Per -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21601120.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e

Re: How to make a popup page for exception handling?

2009-01-22 Thread Fkleinko
/modal-window.1 There you can find the sources (right upper corner) on howto use it with page in it and so on. HTH Per -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21604441.html Sent from the Wicket - User mailing list

Re: How to make a popup page for exception handling?

2009-01-22 Thread Newgro
the examples i gave you. It's all there. Cheers Per -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21604547.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to make a popup page for exception handling?

2009-01-22 Thread Mo Wu
the examples i gave you. It's all there. Cheers Per -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception-handling--tp21588129p21605575.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: How to make a popup page for exception handling?

2009-01-22 Thread Michael O'Cleirigh
Hi Mo, I tried them, I can generate the modal Window. but the AjaxLink is not submit link for a form. I need to show the error message only if there is form processing error. Should I use AjaxSubmitLink instead? or do you have some examples similar to this condition? If the alerts you want

How to make a popup page for exception handling?

2009-01-21 Thread Mo Wu
and it should also show the errorMessage. I know how to show the exception in a feedback panel. But how to make the popup dependent on the results of submission. Thanks for help! Best regards, Mo -- View this message in context: http://www.nabble.com/How-to-make-a-popup-page-for-exception

Re: How to make a popup page for exception handling?

2009-01-21 Thread Per Newgro
I know how to show the exception in a feedback panel. But how to make the popup dependent on the results of submission You could add the errorWindow to your page and in your catch you can show it. But it's only working with ajax. add errorWindow to markup and in class. try {

Re: Global Exception Handling...

2008-03-11 Thread James Carman
On 3/11/08, Igor Vaynberg [EMAIL PROTECTED] wrote: The request cycle is easy enough to access anywhere, RequestCycle.get() right? im not a big fan of using threadlocals everywhere personally...we guarantee certain ones, but they make unit testing, etc, a pita. i would prefer passing

Re: Global Exception Handling...

2008-03-11 Thread James Carman
On 3/11/08, James Carman [EMAIL PROTECTED] wrote: The change I was suggesting wouldn't break any existing code (unless someone implemented IRequestCycleSettings). The signature of RequestCycle.onRuntimeException() wouldn't change: public Page onRuntimeException( Page page,

Re: Global Exception Handling...

2008-03-11 Thread Igor Vaynberg
On Tue, Mar 11, 2008 at 3:30 AM, James Carman [EMAIL PROTECTED] wrote: Okay, so it's common to do your own request cycle implementation. I didn't realize that. In Tapestry, RequestCycle wasn't something you monkeyed around with much. yep, its pretty common. So, you're saying that I

Re: Global Exception Handling...

2008-03-11 Thread Igor Vaynberg
On Tue, Mar 11, 2008 at 3:51 AM, James Carman [EMAIL PROTECTED] wrote: By the way, I can create a patch for this stuff if you like. I guess the decision needs to be made about where the registry (MapClass,IRuntimeExceptionHandler) needs to go. Does it belong in IRequestCycleSettings or

Global Exception Handling...

2008-03-10 Thread James Carman
If I'm developing a Hibernate-based application and I want to install some global StateObjectStateException handling code, what's the best way to do it? I could override Application.newRequestCycle() providing my own request cycle implementation which overrides the onRuntimeException() method.

Re: Global Exception Handling...

2008-03-10 Thread Igor Vaynberg
On Mon, Mar 10, 2008 at 7:39 PM, James Carman [EMAIL PROTECTED] wrote: If I'm developing a Hibernate-based application and I want to install some global StateObjectStateException handling code, what's the best way to do it? I could override Application.newRequestCycle() providing my own

Re: Global Exception Handling...

2008-03-10 Thread James Carman
On 3/10/08, Igor Vaynberg [EMAIL PROTECTED] wrote: On Mon, Mar 10, 2008 at 7:39 PM, James Carman [EMAIL PROTECTED] wrote: If I'm developing a Hibernate-based application and I want to install some global StateObjectStateException handling code, what's the best way to do it? I could

Re: Global Exception Handling...

2008-03-10 Thread James Carman
On 3/10/08, James Carman [EMAIL PROTECTED] wrote: On 3/10/08, Igor Vaynberg [EMAIL PROTECTED] wrote: On Mon, Mar 10, 2008 at 7:39 PM, James Carman [EMAIL PROTECTED] wrote: If I'm developing a Hibernate-based application and I want to install some global StateObjectStateException

Re: Global Exception Handling...

2008-03-10 Thread Igor Vaynberg
you might also need access to the request cycle inside the exceptionhandler, so thats three arguments now...maybe on exception you want to set a 503 error also what is the search order for handler resolution? do we go root cause-outer or outer-root cause? both can make sense in certain situations

Re: Global Exception Handling...

2008-03-10 Thread James Carman
On 3/11/08, Igor Vaynberg [EMAIL PROTECTED] wrote: you might also need access to the request cycle inside the exceptionhandler, so thats three arguments now...maybe on exception you want to set a 503 error also what is the search order for handler resolution? do we go root cause-outer or

Re: Global Exception Handling...

2008-03-10 Thread Igor Vaynberg
On Mon, Mar 10, 2008 at 9:55 PM, James Carman [EMAIL PROTECTED] wrote: On 3/11/08, Igor Vaynberg [EMAIL PROTECTED] wrote: you might also need access to the request cycle inside the exceptionhandler, so thats three arguments now...maybe on exception you want to set a 503 error

How Runtime Exception Handling?

2008-01-15 Thread Rama-o-Rama
/exception-type !-- Displays a stack trace -- location/error.jsp/location /error-page Problem: I still the see the internal error page not the error.jsp page. Thanks Rama -- View this message in context: http://www.nabble.com/How-Runtime-Exception-Handling

Exception Handling

2007-10-22 Thread Suad AlShamsi
Hi All, I am working on a project and I am using wicket 1.3 for the view layer, spring for service layer, and oracle database. As you know there are two types of exception I need to take care of. One is the business logic exception thrown from the service layer and the other one is the