hrm, throwing an exception from onendrequest may be too late for it to be picked up by onruntimeexception, you may have to do that yourself.
-igor On Fri, Nov 20, 2009 at 4:45 PM, Fernando Wermus <fernando.wer...@gmail.com> wrote: > I forgot to mention that I persist some entities in onfinish wizard method > and call > > setResponsePage(getApplication().getHomePage()); > > On Fri, Nov 20, 2009 at 10:44 PM, Fernando Wermus <fernando.wer...@gmail.com >> wrote: > >> Igor, >> My exception is thrown at >> �...@override protected void onEndRequest() { >> >> >> when I commit the transaction. >> >> I reviewed that is not wrapped with a WicketRuntimeException, actually I >> got a TransientObjectException. >> >> >> On Tue, Nov 10, 2009 at 5:16 PM, Igor Vaynberg >> <igor.vaynb...@gmail.com>wrote: >> >>> where is your exception is thrown from? >>> >>> also, check that its not being wrapped in another exception such as a >>> WicketRuntimeException. >>> >>> -igor >>> >>> On Tue, Nov 10, 2009 at 9:57 AM, Fernando Wermus >>> <fernando.wer...@gmail.com> wrote: >>> > Hi all, >>> > I am testing transactionability in a site which I am developing. I >>> got >>> > to roll back the app in case of a Hibernate DataException, but I couldnt >>> > reach my custom request cycle method onRutimeException >>> > >>> > @Override public Page onRuntimeException(Page page, RuntimeException e) >>> > >>> > Why is this? >>> > >>> > The roll back is done in endRequestCycle, while I had instructed a new >>> model >>> > to be shown in the original page in case of succeded. It shows the >>> succeded >>> > page instead the error one. >>> > >>> > Thanks in advance >>> > >>> > >>> > >>> > -- >>> > Fernando Wermus. >>> > >>> > www.linkedin.com/in/fernandowermus >>> > >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Fernando Wermus. >> >> www.linkedin.com/in/fernandowermus >> > > > > -- > Fernando Wermus. > > www.linkedin.com/in/fernandowermus > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org