How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Hi, my usecase: I use a solr server for search. Importing data to the server works by calling an url (localhost:8983/solr/). I've added this url to a link. On click data-import starts. All works fine. SolrLink.java @Override protected CharSequence getURL() { return "localh

RE: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Wilhelmsen Tor Iver
> *But* the link leads me to the solr response page. I know it's intended > by clicking a link to get directed to the called page, but i would like > to call the url and immediatly after that call i would like to redirect > to wicket page. Sounds like what you really want to do is use Apache co

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 13:43, schrieb Wilhelmsen Tor Iver: *But* the link leads me to the solr response page. I know it's intended by clicking a link to get directed to the called page, but i would like to call the url and immediatly after that call i would like to redirect to wicket page. Sounds like wh

RE: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Wilhelmsen Tor Iver
> HttpClient looks great. Do you know if i can execute the HttpMethod > without waiting for request to comeback? > Maybe an asynchronous way? There seems to be an async fork you can try: http://jfarcand.wordpress.com/2010/03/04/new-open-source-project-alert-a-new-asynchronous-http-client-library

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 14:08, schrieb Wilhelmsen Tor Iver: HttpClient looks great. Do you know if i can execute the HttpMethod without waiting for request to comeback? Maybe an asynchronous way? There seems to be an async fork you can try: http://jfarcand.wordpress.com/2010/03/04/new-open-source-project

RE: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Wilhelmsen Tor Iver
> throw new > RestartResponseAtInterceptPageException(DashboardPage.class); Will you ever be returning from that (via continueToOriginalDestination())? If not, setResponsePage(DashboardPage.class) is better. - Tor Iver --

Re: How can i redirect to a wicket page after executing an url-request?

2011-07-18 Thread Mike Mander
Am 18.07.2011 14:41, schrieb Wilhelmsen Tor Iver: throw new RestartResponseAtInterceptPageException(DashboardPage.class); Will you ever be returning from that (via continueToOriginalDestination())? If not, setResponsePage(DashboardPage.class) is better. - Tor Iver --