Hi,

It sounds to be related to Page#renderCount.
'renderCount' is used to prevent using an obsolete version of a page
instance. I.e. a page with a given page id counts how many times it
has been rendered. If you have a tab/window which contains an earlier
version of that page and you click on it then this click should be
prevented because it will work with stale data.
In your description I don't see how this may happen. There is
something more which is not included in your description.
I recommend you to put a break point in o.a.w.Page and see why
'renderCount' changes and another in PageProvider#getPageInstance() to
see why the requested 'renderCount' is different than the current one.

2012/3/4 Andre Schütz <andre-p...@gmx.de>:
> Hello,
>
> i have a question about the behavior of links in two tabs.
>
> I have an application that I opened in two tabs. In Tab1, I
> make a submit from Page1 and get Page2. At the same time,
> I make a submit in Tab2 from Page1 to Page2. The two pages
> with the name Page2 in the two tabs display the results of
> a search, depending on the search word in the respective
> Page1.
>
> Finally, I get the following urls:
>
> (1) Tab1 makes a submit from Page1 to Page2, url is:
> localhost:8080/myapp?2&q=word1
> (2) Tab2 makesa a submit from Page1 to Page2, url is:
> localhost:8080/myapp?3&q=word2
>
> You can see, that the only difference is the search word
> in q= and the page id which is 2 for Tab1 and 3 for Tab2.
>
> My problem is the following:
> ---------------------------------
> I have some filter links (not Bookmarkable) on Page2 which you can use to
> filter the results. If you click on such a link, the PageParameters will
> be updated and the value of the link will be added to the PageParameters
> as additional filter.
>
> Theses two scenarios are happening:
>
> (a)
> If I click on a filter Link in Tab1, the link does work like expected.
> The page will be reloaded and gets a new page ID which is bigger than the
> ID in Tab2. After this reload of the page, the links work as expected.
>
> (b)
> If I click on a filter Link in Tab2 (which already has a higher page ID than
> Tab1) the links work as expected.
>
>
> To sumarize it:
>
> The links do not work on a page that has a smaller Page ID than another
> tab in the same browser. After the reload of the page by clicking on a
> link and getting the highest Page ID, the links work as expected.
>
> Anybody an idea why that can happen?
>
> Thanks in advance,
> Andre
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to