wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Detecting if page is opened in another tab
Date Tue, 04 Mar 2014 09:04:43 GMT
Hi,

This behavior works only when you open the same page instance in another
tab/window.
I.e. only when the url contains the same mount path and page id

Martin Grigorov
Wicket Training and Consulting


On Thu, Feb 27, 2014 at 7:21 PM, eaglei22 <jchojnacki26@gmail.com> wrote:

> Thanks Martin,
>
> This seems to be the solution, but isn't working as it should.
>
> I tried this:
>
>                  add(new AjaxNewWindowNotifyingBehavior()
>                  {
>
>                         /**
>                          *
>                          */
>                         private static final long serialVersionUID = 1L;
>
>                         @Override
>                         protected void onNewWindow(AjaxRequestTarget arg0)
>                         {
>
>
> System.out.println("called//.................................................................");
>                                 String message = "You already have an
> instance of Bulk Loader running.
> Please   view from the current opened window.";
>                                 setResponsePage(new BulkLoadPage(message));
>                         }
>
>                  });
>
>
> And the method: onNewWindow never even enters on a new instance of the
> page,
> while one is currently opened in another tab.
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Detecting-if-page-is-opened-in-another-tab-tp4664674p4664718.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message