ok, then clean up what we have built so far since there is no more usecase for it.

-Igor


On 8/14/06, Johan Compagner < [EMAIL PROTECTED]> wrote:
to have one general always working thing for different ajax impl? (just make sure you set the header?)

johan


On 8/14/06, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
i get why it helps with the session expired page, i am just wondering why the stuff for setresponsepage() being changed?

-Igor



On 8/14/06, Matej Knopp <[EMAIL PROTECTED]> wrote:
Yes, but it doesn't work for expired pages. Or other error (i'm not sure
here). The solution with headers would be much more general (and perhaps
also simpler).

Each ajax request would set a wicket:ajax header.

If request cycle detects this headers, setResponsePage would
automatically turn redirect on and sendRedirect of WebResponse would set
wicket-ajax-location instead of location header.

The _javascript_ then detects presence of wicket-ajax-location a sets
window.location if the header is there.

Thoughts?

-Matej

Igor Vaynberg wrote:
> i thought we already took care of (1) and (3) with the
> IRequestTargetInterceptor. if you are inside an ajax request and call
> setresponsepage() then the window.location _javascript_ is generated for
> you. how is this better?
>
> -Igor
>
>
> On 8/14/06, *Frank Bille* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     We just talked about it on IRC and we will try to do it like this:
>
>        1. All redirects should be handled different if it's ajax (send
>           ajax-location instead of location). This has nothing to do
>           with the expired session problem, but has to do with how to
>           redirect to a different page, when using ajax.
>           Instead of doing appendJavascript("window.location = URL") we
>           change the requestcycle to add "ajax-location" instead of
>           "location" when doing the header redirect.
>        2. Add an ajax indicator to all ajax requests. This is done in
>           the _javascript_ so the server knows it's ajax even if all
>           session related objects is gone.
>        3. Whenever setresponsepage is called in an ajax request, we call
>           setRedirect(true), so we force the ajax-location header.
>
>
>     I think this could work out just fine.
>
>     - Frank
>
>
>
>     On 8/14/06, *Frank Bille* < [EMAIL PROTECTED]
>     <mailto: [EMAIL PROTECTED]>> wrote:
>
>         Ok, can _javascript_ do that? That would be just as good.
>
>         - Frank
>
>
>
>         On 8/14/06, * Johan Compagner* <[EMAIL PROTECTED]
>         <mailto: [EMAIL PROTECTED]>> wrote:
>
>             matej means i guess set a request header (the one like:
>             accept-encoding, or what kind of browser you are) with a
>             ajax request
>             read that header out on the server and you know that it is a
>             ajax request..
>
>             johan
>
>
>             On 8/14/06, *Frank Bille* < [EMAIL PROTECTED]
>             <mailto:[EMAIL PROTECTED]>> wrote:
>
>             On 8/14/06, *Matej Knopp* < [EMAIL PROTECTED]
>             <mailto:[EMAIL PROTECTED]>> wrote:
>
>                 Another parameter? Do we really need it? Isn't this
>                 something that can
>                 be put into request header? (either on client or server
>                 side).
>
>
>             Not sure what you mean by request header? What I don't think
>             we should have is something that is placed in memory on the
>             server and stays there even if the session is expired.
>
>             - Frank
>
>
>
>             -------------------------------------------------------------------------
>             Using Tomcat but need to do more? Need to support web
>             services, security?
>             Get stuff done quickly with pre-integrated technology to
>             make your job easier
>             Download IBM WebSphere Application Server v.1.0.1 based on
>             Apache Geronimo
>             http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>             < http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>
>             _______________________________________________
>             Wicket-develop mailing list
>             Wicket-develop@lists.sourceforge.net
>             <mailto:Wicket-develop@lists.sourceforge.net>
>             https://lists.sourceforge.net/lists/listinfo/wicket-develop
>             < https://lists.sourceforge.net/lists/listinfo/wicket-develop >
>
>
>
>
>             -------------------------------------------------------------------------
>             Using Tomcat but need to do more? Need to support web
>             services, security?
>             Get stuff done quickly with pre-integrated technology to
>             make your job easier
>             Download IBM WebSphere Application Server v.1.0.1 based on
>             Apache Geronimo
>             http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>             < http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>
>             _______________________________________________
>             Wicket-develop mailing list
>             Wicket-develop@lists.sourceforge.net
>             <mailto: Wicket-develop@lists.sourceforge.net>
>             https://lists.sourceforge.net/lists/listinfo/wicket-develop
>             < https://lists.sourceforge.net/lists/listinfo/wicket-develop>
>
>
>
>
>
>     -------------------------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>
>     _______________________________________________
>     Wicket-develop mailing list
>     Wicket-develop@lists.sourceforge.net
>     <mailto: Wicket-develop@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-develop
>     < https://lists.sourceforge.net/lists/listinfo/wicket-develop>
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wicket-develop mailing list
> Wicket-develop@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-develop


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop


-------------------------------------------------------------------------

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-develop mailing list
Wicket-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to