we use a javascript trick. when a page loads into the window for the first
time it sets the window.name variable to something other then null. in new
windows this var is always initialized to null, so if we do a request and
see that it is null we know a new window/tab has been opened.
-igor
On 5/14/07, Erik van Oosten <[EMAIL PROTECTED]> wrote:
Wouter,
To complete Johan: the newBrowserWindow check can detect that a page is
opened in another browser window/tab then the page it was opened from.
When
this happens, a new pagemap is created.
@Johan, how does Wicket detect a new browser window/tab in 1.3?
Regards,
Erik.
Johan Compagner wrote:
>
> i think in 2.0 the newBrowserWindow check is still enabled.
>
> this makes sure that for one pagemap only one window is open.
> If the checker finds another tab (or window) in a browser that is new
and
> the pagemap
> is already used by another window then it will redirect and the same
page
> will be moved
> to the new pagemap (wicket-1%3A)
>
> this can be disabled (and is already disabled in 1.3 by default when
using
> the SecondLevelCache)
>
> johan
>
--
Erik van Oosten
http://2007.rubyenrails.nl/
http://day-to-day-stuff.blogspot.com/
--
View this message in context:
http://www.nabble.com/weird-url-behaviour-for-bookmarkable-pages-tf3752813.html#a10607983
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user