Matej Knopp wrote:
> Strange. I'm looking into PageMapChecker#renderHead and it doesn't seem
> obvious why the generated url doesn't contain pageMap name.
>
> Are you using a custom URL encoding scheme or anything like that?
yes about the custom schema. the page map name is mull. does it cause any harm?
if i manage to figure out how to create a PageMap, will it be created on every
page request (do i need somehow to generate a new name per tab/window, how?)?
or is it still per session? if it is per session, then i think that the tabs /
windows share the session, which means the same cookie, which causes the
infinite reloading.
>
> -Matej
>
> Ittay Dror wrote:
>> Hi,
>>
>> I'm using firefox. when i duplicate a tab, the tab reloads in an infinite
>> loop.
>>
>> this is the reason:
>> <script type="text/javascript"><!--//--><![CDATA[//><!--
>> var pagemapcookie = getWicketCookie('pm-nullwicket');
>> if(!pagemapcookie && pagemapcookie !=
>> '1'){setWicketCookie('pm-nullwicket',1);}
>> else {document.location.href =
>> '/page/SomePage;jsessionid=E43E09C7B61190F3C8C5E98CB988F21F?';}
>>
>> //--><!]]></script>
>>
>> </head>
>> <body onunload="deleteWicketCookie('pm-nullwicket');">
>>
>>
>> what happens is that the pagemapcookie is there when the page is rendered,
>> because the previous page was not unloaded, so the document's href is
>> changed to itself. of course, when the page loads, the cookie is still 1, so
>> the loop continues. the same will happen if i just open a new tab and load
>> the same url.
>>
>> what gives?
>>
>>
>> also, the code that writes this script is WebPage.PageMapChecker the comment
>> in the code is:
>> /**
>> * Tries to determine whether this page was opened in a new window or
>> tab.
>> * If it is (and this checker were able to recognize that), a new page
>> map
>> * is created for this page instance, so that it will start using it's
>> own
>> * history in sync with the browser window or tab.
>> */
>>
>> i've tried to debug this, but it doesn't look like a new PageMap is created
>> (i don't use it, so the PageMap instance is the default one). so it seems i
>> *don't* get a history per tab.
>>
>> can/should i remove the AutomaticMultiWindowSupport setting?
>>
>> thanx,
>> ittay
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
--
===================================
Ittay Dror,
Chief architect, openQRM TL,
R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841
http://www.openQRM.org
- Keeps your Data-Center Up and Running
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user