in 1.3 this is a bit improved.
If you past the url in an existing wicket window. Then it will not only
check for the window.name = "" but also if the auto generated wicket name
does match
If that is not the case then again the redirect will take place.

johan


On 11/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:

hmm, so it seems like when you paste a url into an already opened window
the window.name attribute is not reset back to null. this is rather
unfortunate because it is what we use to create an autopagemap. if you are
talking about just pasting a url into another window there is no way to
create it in a new pagemap unless you change the url itself.

-igor


On 11/28/06, Nili Adoram <[EMAIL PROTECTED]> wrote:
>
> If 2 browser tabs are already open and I paste the same URL into both
> tabs they are both created in the same page map.
> WebPage.onNewBrowserWindow() hook is never called if the tabs are
> already open.
> Thus, after the first is refreshed by Ajax, the second fails to refresh
> by Ajax.
>
> How can I VERIFY that they are not opened in the same page map?
>
> Thanks.
> -- Nili
>
> Igor Vaynberg wrote:
> > whatever does not work, can you reproduce it in a quickstart so we can
> > debug it?
> >
> > -igor
> >
> >
> > On 11/27/06, *Eelco Hillenius* < [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED] >> wrote:
> >
> >     There's a trick in Wicket that tries to match the window name and
> the
> >     page map name. This works in many cases. You'll find the script in
> >     class WebPage, and if you use links with popup specs and a proper
> page
> >     map etc, or e.g. open a new tab and paste your current URL in,
> you'll
> >     find it works in many cases.
> >
> >     Eelco
> >
> >
> >     On 11/27/06, Nili Adoram < [EMAIL PROTECTED]
> >     <mailto:[EMAIL PROTECTED]>> wrote:
> >     > How do I do that?
> >     > How do I recognize that an instance of that page is currently
> >     active
> >     > within a different browser tab?
> >     > Should I explore all page maps?
> >     >
> >     > Thanks,
> >     > -- Nili
> >     >
> >     > Eelco Hillenius wrote:
> >     > > You should make sure those two tabs each have their own
> pagemap.
> >     > > Wicket tries as much as it can to do this automatically, but
> >     it helps
> >     > > if you do this manually as well.
> >     > >
> >     > > Eelco
> >     > >
> >     > >
> >     > > On 11/27/06, Nili Adoram < [EMAIL PROTECTED]
> >     <mailto: [EMAIL PROTECTED]>> wrote:
> >     > >
> >     > >> Hi all,
> >     > >>
> >     > >> I have a 'Item editing' page containing a form. When the form
> is
> >     > >> submitted I want to return to the 'Item List' page but with
> >     fresh data.
> >     > >> In order to do that, after the form is submitted I look for
> >     the last
> >     > >> instance of the Item List page in the page map, retrieve some
> >     of its
> >     > >> page parameters (sorting, filtering, paging params) ,
> >     > >> and call setResponsePage with this page class and page
> >     parameters. This
> >     > >> constructs a bookmarkable page with fresh data.
> >     > >> In addition this page contains an AjaxEventBehavior that
> >     refreshes some
> >     > >> of the page components once a minute.
> >     > >> This all works great if only one browser tab is open.
> >     > >>
> >     > >> However, if two browser tabs are open simultaneously things
> >     go wrong:
> >     > >> I open the Item List page in both tabs.
> >     > >> I open the Item page in one tab and submit the form.
> >     > >> I open the Item page in the second tab and submit the form.
> >     > >> When ajax tries to refresh the first tab it fails to find the
>
> >     page
> >     > >> (inside
> >     DefaultRequestTargetResolverStrategyresolveRenderedPage()) and
> >     > >> 'page expired' page is displayed.
> >     > >>
> >     > >> getCallBackScript of AjaxEventBehavior is called with false
> for
> >     > >> recordPageVersion and false for onlyTargetActivePage.
> >     > >> If I modify onlyTargetActivePage to true one of the tabs
> stops
> >     > >> refreshing after the aforementioned scenario.
> >     > >>
> >     > >> Any ideas how to avoid this page expired problem ?
> >     > >>
> >     > >> Thanks,
> >     > >> Nili
> >     > >>
> >     > >>
> >
> -------------------------------------------------------------------------
> >
> >     > >> Take Surveys. Earn Cash. Influence the Future of IT
> >     > >> Join SourceForge.net's Techsay panel and you'll get the
> >     chance to share your
> >     > >> opinions on IT & business topics through brief surveys - and
> >     earn cash
> >     > >>
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >     
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >     > >> _______________________________________________
> >     > >> Wicket-user mailing list
> >     > >> [email protected]
> >     <mailto:[email protected]>
> >     > >> https://lists.sourceforge.net/lists/listinfo/wicket-user
> >     > >>
> >     > >>
> >     > >
> >     > >
> >
> -------------------------------------------------------------------------
> >     > > Take Surveys. Earn Cash. Influence the Future of IT
> >     > > Join SourceForge.net's Techsay panel and you'll get the chance
>
> >     to share your
> >     > > opinions on IT & business topics through brief surveys - and
> >     earn cash
> >     > >
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >     
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >     > > _______________________________________________
> >     > > Wicket-user mailing list
> >     > > [email protected]
> >     <mailto:[email protected]>
> >     > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >     > >
> >     > >
> >     >
> >     >
> >
> -------------------------------------------------------------------------
> >
> >     > Take Surveys. Earn Cash. Influence the Future of IT
> >     > Join SourceForge.net's Techsay panel and you'll get the chance
> >     to share your
> >     > opinions on IT & business topics through brief surveys - and
> >     earn cash
> >     >
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >     
<http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >     > _______________________________________________
> >     > Wicket-user mailing list
> >     > [email protected]
> >     <mailto:[email protected]>
> >     > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
> >     >
> >
> >
> -------------------------------------------------------------------------
> >     Take Surveys. Earn Cash. Influence the Future of IT
> >     Join SourceForge.net's Techsay panel and you'll get the chance to
> >     share your
> >     opinions on IT & business topics through brief surveys - and earn
> cash
> >     
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> >     <
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> >     _______________________________________________
> >     Wicket-user mailing list
> >     [email protected]
> >     <mailto:[email protected] >
> >     https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
> ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
> -------------------------------------------------------------------------
>
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to