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
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
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
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
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
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
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
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
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
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
.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
<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
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
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 '
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
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
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)
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
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
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
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
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
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,
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
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
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?
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
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
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
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:
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
application.getrequestcyclelisteners().add(new abstractrequestcyclelistener() {
irequsthandler onexception(e) {
Throwable cause = e;
if (cause instanceof WicketRuntimeException) {
cause = cause.getCause();
}
if (cause instanceof InvocationTargetException)
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
() 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
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
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
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
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
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
);
--
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
);
--
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
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
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
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
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
) {
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
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
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
. 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
/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
-
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
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
:
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
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
();
}
-
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
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
/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
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
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
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
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
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 {
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
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,
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
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
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.
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
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
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
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
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
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
/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
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
88 matches
Mail list logo