You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Benjamin Ernst <be...@gmail.com> on 2007/09/19 12:10:35 UTC
onNewBrowserWindow is not called
Hi,
when a new Browser-Window is opened, I want to start a new Session for this
window.
I implemented the method onNewBrowserWindow() in my HomePage.class, but it
is never called.
I tried opening a new Browser, a new Browser-Window and new Tab, but
nothing.
Is there any other way to determine if a new Window is opened?
Benjamin
Re: onNewBrowserWindow is not called
Posted by Benjamin Ernst <be...@gmail.com>.
yes, we are using tomcat 5.5.23
2007/9/25, Matej Knopp <ma...@gmail.com>:
>
> Disabling cookies should work. What servlet container are you using?
> There are certain problems with Tomcat 5.5.
>
> -Matej
>
> On 9/25/07, Benjamin Ernst <be...@gmail.com> wrote:
> > Hi,
> > we tried your suggestions and they could work. But it would really much
> > easier for us to just get a new session for a new Browser-Window. Is
> there
> > no way to create a new session?
> >
> > We tried to turn of cookies in the context.xml and use URL-rewriting
> > instead, but this doesn't seem to work. The first page is loaded
> correctly
> > and after that every request end up in "Page-expired"-Error.
> >
> > Benjamin
> >
> > 2007/9/19, Matej Knopp <ma...@gmail.com>:
> > >
> > > Application.getPageSettings().setAutomaticMultiWindowSupport(true);
> > >
> > > -Matej
> > >
> > > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > > Hi,
> > > > thanks for your help. I will try that, but I have one last question
> > > > (hopefully): How do I turn on the multiwindow support?
> > > >
> > > > Benjamin
> > > >
> > > > 2007/9/19, Matej Knopp <ma...@gmail.com>:
> > > > >
> > > > > You can use pagemap metadata for it, providing you have recent
> enough
> > > > > wicket version. And, of course, you have to turn on the
> multiwindow
> > > > > support.
> > > > >
> > > > > -Matej
> > > > >
> > > > > On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > > > > > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > > > > > Hi
> > > > > > > I store some context-information in the session. When a new
> window
> > > is
> > > > > opened
> > > > > > > it has a new context, so I want to have a new Session for this
> > > > > context.
> > > > > > > But the old window should stay with the old context.
> > > > > >
> > > > > > You should try to bend this in a separate data structure within
> the
> > > > > > session, probably keyed on page map id.
> > > > > >
> > > > > > Eelco
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > >
> > > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: onNewBrowserWindow is not called
Posted by Matej Knopp <ma...@gmail.com>.
Disabling cookies should work. What servlet container are you using?
There are certain problems with Tomcat 5.5.
-Matej
On 9/25/07, Benjamin Ernst <be...@gmail.com> wrote:
> Hi,
> we tried your suggestions and they could work. But it would really much
> easier for us to just get a new session for a new Browser-Window. Is there
> no way to create a new session?
>
> We tried to turn of cookies in the context.xml and use URL-rewriting
> instead, but this doesn't seem to work. The first page is loaded correctly
> and after that every request end up in "Page-expired"-Error.
>
> Benjamin
>
> 2007/9/19, Matej Knopp <ma...@gmail.com>:
> >
> > Application.getPageSettings().setAutomaticMultiWindowSupport(true);
> >
> > -Matej
> >
> > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > Hi,
> > > thanks for your help. I will try that, but I have one last question
> > > (hopefully): How do I turn on the multiwindow support?
> > >
> > > Benjamin
> > >
> > > 2007/9/19, Matej Knopp <ma...@gmail.com>:
> > > >
> > > > You can use pagemap metadata for it, providing you have recent enough
> > > > wicket version. And, of course, you have to turn on the multiwindow
> > > > support.
> > > >
> > > > -Matej
> > > >
> > > > On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > > > > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > > > > Hi
> > > > > > I store some context-information in the session. When a new window
> > is
> > > > opened
> > > > > > it has a new context, so I want to have a new Session for this
> > > > context.
> > > > > > But the old window should stay with the old context.
> > > > >
> > > > > You should try to bend this in a separate data structure within the
> > > > > session, probably keyed on page map id.
> > > > >
> > > > > Eelco
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: onNewBrowserWindow is not called
Posted by Benjamin Ernst <be...@gmail.com>.
Hi,
we tried your suggestions and they could work. But it would really much
easier for us to just get a new session for a new Browser-Window. Is there
no way to create a new session?
We tried to turn of cookies in the context.xml and use URL-rewriting
instead, but this doesn't seem to work. The first page is loaded correctly
and after that every request end up in "Page-expired"-Error.
Benjamin
2007/9/19, Matej Knopp <ma...@gmail.com>:
>
> Application.getPageSettings().setAutomaticMultiWindowSupport(true);
>
> -Matej
>
> On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > Hi,
> > thanks for your help. I will try that, but I have one last question
> > (hopefully): How do I turn on the multiwindow support?
> >
> > Benjamin
> >
> > 2007/9/19, Matej Knopp <ma...@gmail.com>:
> > >
> > > You can use pagemap metadata for it, providing you have recent enough
> > > wicket version. And, of course, you have to turn on the multiwindow
> > > support.
> > >
> > > -Matej
> > >
> > > On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > > > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > > > Hi
> > > > > I store some context-information in the session. When a new window
> is
> > > opened
> > > > > it has a new context, so I want to have a new Session for this
> > > context.
> > > > > But the old window should stay with the old context.
> > > >
> > > > You should try to bend this in a separate data structure within the
> > > > session, probably keyed on page map id.
> > > >
> > > > Eelco
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > > For additional commands, e-mail: users-help@wicket.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: onNewBrowserWindow is not called
Posted by Matej Knopp <ma...@gmail.com>.
Application.getPageSettings().setAutomaticMultiWindowSupport(true);
-Matej
On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> Hi,
> thanks for your help. I will try that, but I have one last question
> (hopefully): How do I turn on the multiwindow support?
>
> Benjamin
>
> 2007/9/19, Matej Knopp <ma...@gmail.com>:
> >
> > You can use pagemap metadata for it, providing you have recent enough
> > wicket version. And, of course, you have to turn on the multiwindow
> > support.
> >
> > -Matej
> >
> > On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > > Hi
> > > > I store some context-information in the session. When a new window is
> > opened
> > > > it has a new context, so I want to have a new Session for this
> > context.
> > > > But the old window should stay with the old context.
> > >
> > > You should try to bend this in a separate data structure within the
> > > session, probably keyed on page map id.
> > >
> > > Eelco
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > > For additional commands, e-mail: users-help@wicket.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: onNewBrowserWindow is not called
Posted by Benjamin Ernst <be...@gmail.com>.
Hi,
thanks for your help. I will try that, but I have one last question
(hopefully): How do I turn on the multiwindow support?
Benjamin
2007/9/19, Matej Knopp <ma...@gmail.com>:
>
> You can use pagemap metadata for it, providing you have recent enough
> wicket version. And, of course, you have to turn on the multiwindow
> support.
>
> -Matej
>
> On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> > On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > > Hi
> > > I store some context-information in the session. When a new window is
> opened
> > > it has a new context, so I want to have a new Session for this
> context.
> > > But the old window should stay with the old context.
> >
> > You should try to bend this in a separate data structure within the
> > session, probably keyed on page map id.
> >
> > Eelco
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: onNewBrowserWindow is not called
Posted by Matej Knopp <ma...@gmail.com>.
You can use pagemap metadata for it, providing you have recent enough
wicket version. And, of course, you have to turn on the multiwindow
support.
-Matej
On 9/19/07, Eelco Hillenius <ee...@gmail.com> wrote:
> On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > Hi
> > I store some context-information in the session. When a new window is opened
> > it has a new context, so I want to have a new Session for this context.
> > But the old window should stay with the old context.
>
> You should try to bend this in a separate data structure within the
> session, probably keyed on page map id.
>
> Eelco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: onNewBrowserWindow is not called
Posted by Eelco Hillenius <ee...@gmail.com>.
On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> Hi
> I store some context-information in the session. When a new window is opened
> it has a new context, so I want to have a new Session for this context.
> But the old window should stay with the old context.
You should try to bend this in a separate data structure within the
session, probably keyed on page map id.
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: onNewBrowserWindow is not called
Posted by Benjamin Ernst <be...@gmail.com>.
Hi
I store some context-information in the session. When a new window is opened
it has a new context, so I want to have a new Session for this context.
But the old window should stay with the old context.
Benjamin
2007/9/19, Matej Knopp <ma...@gmail.com>:
>
> You need to turn on multi window support. But this is not really user
> overridable callback. Also, what do you mean by "start new session"?
>
> -Matej
>
> On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> > Hi,
> >
> > when a new Browser-Window is opened, I want to start a new Session for
> this
> > window.
> > I implemented the method onNewBrowserWindow() in my HomePage.class, but
> it
> > is never called.
> > I tried opening a new Browser, a new Browser-Window and new Tab, but
> > nothing.
> >
> > Is there any other way to determine if a new Window is opened?
> >
> > Benjamin
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: onNewBrowserWindow is not called
Posted by Matej Knopp <ma...@gmail.com>.
You need to turn on multi window support. But this is not really user
overridable callback. Also, what do you mean by "start new session"?
-Matej
On 9/19/07, Benjamin Ernst <be...@gmail.com> wrote:
> Hi,
>
> when a new Browser-Window is opened, I want to start a new Session for this
> window.
> I implemented the method onNewBrowserWindow() in my HomePage.class, but it
> is never called.
> I tried opening a new Browser, a new Browser-Window and new Tab, but
> nothing.
>
> Is there any other way to determine if a new Window is opened?
>
> Benjamin
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org