You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Brown, Berlin [GCG-PFS]" <Be...@Primerica.com> on 2011/04/14 15:46:11 UTC

Ajax Response and a Redirect, anyone seen this

https://gist.github.com/918794
 
Has anyone seen this, where is the code to process an ajax-response.
 
 
POST /life/launch/?wicket:
interface=:23:navigationPanel:nextLink::IActivePageBehaviorListener:1:-1
&wicket:ignoreIfNotActive=true&random=0.006311339758800216 HTTP/1.1
Accept: text/xml
Accept-Language: en-us
wicket-ajax: true
Referer: https://mysite/launch/
wicket-focusedelementid: idc96
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Host: mysite
Content-Length: 457
Connection: Keep-Alive
Cache-Control: no-cache


idc9e_hf_0=&firstName=SP


HTTP/1.1 200 OK
Date: Wed, 13 Apr 2011 19:24:37 GMT
Server: IBM_HTTP_Server
Ajax-Location: ?wicket:bookmarkablePage=:theapplife.errors.ErrorPage
Content-Length: 121
Keep-Alive: timeout=10, max=97
Connection: Keep-Alive
Content-Type: text/xml
Content-Language: en-US

Re: Ajax Response and a Redirect, anyone seen this

Posted by Martin Grigorov <mg...@apache.org>.
AjaxRequestTarget creates it by default.
Only when a redirect is needed ServletWebResponse creates it.

On Thu, Apr 14, 2011 at 4:10 PM, Brown, Berlin [GCG-PFS] <
Berlin.Brown@primerica.com> wrote:

> Where is the code to process the ajax-response, the java code?
>
> -----Original Message-----
> From: Martin Grigorov [mailto:mgrigorov@apache.org]
> Sent: Thursday, April 14, 2011 9:56 AM
> To: users@wicket.apache.org
> Subject: Re: Ajax Response and a Redirect, anyone seen this
>
> the code is in wicket-ajax.js
>
> you Ajax callback lead to an error and thus the redirect to your
> internal error page
>
> On Thu, Apr 14, 2011 at 3:46 PM, Brown, Berlin [GCG-PFS] <
> Berlin.Brown@primerica.com> wrote:
>
> > https://gist.github.com/918794
> >
> > Has anyone seen this, where is the code to process an ajax-response.
> >
> >
> > POST /life/launch/?wicket:
> > interface=:23:navigationPanel:nextLink::IActivePageBehaviorListener:1:
> > -1
> > &wicket:ignoreIfNotActive=true&random=0.006311339758800216 HTTP/1.1
> > Accept: text/xml
> > Accept-Language: en-us
> > wicket-ajax: true
> > Referer: https://mysite/launch/
> > wicket-focusedelementid: idc96
> > Content-Type: application/x-www-form-urlencoded
> > UA-CPU: x86
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
> > CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
> > Host: mysite
> > Content-Length: 457
> > Connection: Keep-Alive
> > Cache-Control: no-cache
> >
> >
> > idc9e_hf_0=&firstName=SP
> >
> >
> > HTTP/1.1 200 OK
> > Date: Wed, 13 Apr 2011 19:24:37 GMT
> > Server: IBM_HTTP_Server
> > Ajax-Location: ?wicket:bookmarkablePage=:theapplife.errors.ErrorPage
> > Content-Length: 121
> > Keep-Alive: timeout=10, max=97
> > Connection: Keep-Alive
> > Content-Type: text/xml
> > Content-Language: en-US
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

RE: Ajax Response and a Redirect, anyone seen this

Posted by "Brown, Berlin [GCG-PFS]" <Be...@Primerica.com>.
Where is the code to process the ajax-response, the java code? 

-----Original Message-----
From: Martin Grigorov [mailto:mgrigorov@apache.org] 
Sent: Thursday, April 14, 2011 9:56 AM
To: users@wicket.apache.org
Subject: Re: Ajax Response and a Redirect, anyone seen this

the code is in wicket-ajax.js

you Ajax callback lead to an error and thus the redirect to your
internal error page

On Thu, Apr 14, 2011 at 3:46 PM, Brown, Berlin [GCG-PFS] <
Berlin.Brown@primerica.com> wrote:

> https://gist.github.com/918794
>
> Has anyone seen this, where is the code to process an ajax-response.
>
>
> POST /life/launch/?wicket:
> interface=:23:navigationPanel:nextLink::IActivePageBehaviorListener:1:
> -1
> &wicket:ignoreIfNotActive=true&random=0.006311339758800216 HTTP/1.1
> Accept: text/xml
> Accept-Language: en-us
> wicket-ajax: true
> Referer: https://mysite/launch/
> wicket-focusedelementid: idc96
> Content-Type: application/x-www-form-urlencoded
> UA-CPU: x86
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET 
> CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
> Host: mysite
> Content-Length: 457
> Connection: Keep-Alive
> Cache-Control: no-cache
>
>
> idc9e_hf_0=&firstName=SP
>
>
> HTTP/1.1 200 OK
> Date: Wed, 13 Apr 2011 19:24:37 GMT
> Server: IBM_HTTP_Server
> Ajax-Location: ?wicket:bookmarkablePage=:theapplife.errors.ErrorPage
> Content-Length: 121
> Keep-Alive: timeout=10, max=97
> Connection: Keep-Alive
> Content-Type: text/xml
> Content-Language: en-US
>



--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Ajax Response and a Redirect, anyone seen this

Posted by Martin Grigorov <mg...@apache.org>.
the code is in wicket-ajax.js

you Ajax callback lead to an error and thus the redirect to your internal
error page

On Thu, Apr 14, 2011 at 3:46 PM, Brown, Berlin [GCG-PFS] <
Berlin.Brown@primerica.com> wrote:

> https://gist.github.com/918794
>
> Has anyone seen this, where is the code to process an ajax-response.
>
>
> POST /life/launch/?wicket:
> interface=:23:navigationPanel:nextLink::IActivePageBehaviorListener:1:-1
> &wicket:ignoreIfNotActive=true&random=0.006311339758800216 HTTP/1.1
> Accept: text/xml
> Accept-Language: en-us
> wicket-ajax: true
> Referer: https://mysite/launch/
> wicket-focusedelementid: idc96
> Content-Type: application/x-www-form-urlencoded
> UA-CPU: x86
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
> 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
> Host: mysite
> Content-Length: 457
> Connection: Keep-Alive
> Cache-Control: no-cache
>
>
> idc9e_hf_0=&firstName=SP
>
>
> HTTP/1.1 200 OK
> Date: Wed, 13 Apr 2011 19:24:37 GMT
> Server: IBM_HTTP_Server
> Ajax-Location: ?wicket:bookmarkablePage=:theapplife.errors.ErrorPage
> Content-Length: 121
> Keep-Alive: timeout=10, max=97
> Connection: Keep-Alive
> Content-Type: text/xml
> Content-Language: en-US
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>