how to send a request to an external url from wicket?

2015-07-21 Thread cosmindumy
Hello, My form needs to make the post request to an external URL. Basically is about sending a request to a payment server. I know that my form needs to override the action value, but what I actually want is to validate the form and handle the fields and afterwards to send the request to the

Re: how to send a request to an external url from wicket?

2015-07-21 Thread Sven Meier
Hi, throw a RedirectToUrlException in your #onSubmit(). Have fun| Sven | On 21.07.2015 17:09, cosmindumy wrote: Hello, My form needs to make the post request to an external URL. Basically is about sending a request to a payment server. I know that my form needs to override the action value,

Re: Howto have just currently viewed page in session...

2015-07-21 Thread tomask79
Really no one? Nobody solves problem of having refreshing timer in pages and using PageNumberEvictionStrategy(1) because this obviously doesn't work when you're redirecting to another page again with timerYou can end up in situation that previous page is dropped, but timer sent ajax already,

Re: Howto have just currently viewed page in session...

2015-07-21 Thread tomask79
Hi Christoph, no, I have no serialization problemsIf you use ajax refresh timer *with high frequency* in pages then PageNumberEvictionStrategy(1) makes your app very unstable...Page is sometimes recreated by framework (*if you redirect to another page*), but without page parameters. So if

Re: Wicket 6 - test ajax component.

2015-07-21 Thread andrea del bene
Hi, I don't think it's possible to send a specific key as this requires JavaScript code to be executed. But you can test AJAX events: //simulate an AJAX click event tester.executeAjaxEvent(label, click); See 'Testing AJAX events' in the userguide for more details. Andrea. On 20/07/2015

Re: Howto have just currently viewed page in session...

2015-07-21 Thread Christoph Läubrich
I think you have to provide more information, because in general evicting the page from in -memory store just mean it must be reloaded from the PageStor/DataStore! If this fails, then your application most likeley has serialization issues. So what is the crash you encounter? Why is it not