[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

returning page in new session/dealing with backtracking,new windows



Hi, 

> Those are useful ideas. But what I'm really looking for is a way to simply
> decide to be in a new session in an action method.
> 
> public WOComponent someAction() {
>        willBeInNewSession();
>        return pageWithName("SomePage");
> }

I just realized that you can do this:

public WOComponent someAction() {
   WOContext contextWithoutSession = new WOContext
        (new WORequest ("GET", "", "HTTP/1.1", null, null, null));
   return application().pageWithName("SomePage", contextWithoutSession);
}


> A page cachign scheme like
> WOs just doesn't work well with multiple browser windows being used at
> once. You don't need to let the user back-click an infinite number of
> times, but you WOULD like to let the user click an infinite number of times
> in one window and still return to another window.

That's right. Perhaps we need a page cache per window.

Tatsuya
--
Tatsuya Kawano
New York  NY 10016

E924 0D0D C0BF 3DCF 9F83  F2CD 20D1 8377 633A D84F