Hi, thank you for the answer. I will test this and reply with my results.
I have three questions depending on the test you have mentioned. (1) Can you tell me more about this o.a.w.Page? I did not really find something about it. (2) Can you explain me a little bit more in detail, what I should try to find out with the breakpoint regarding the 'renderCount'. What could be the interesting parts regarding 'renderCount'? (3) I have my .html files stored in src/main/html, my .properties files in src/main/resources and modified my pom.xml with: <build> <resources> <resource> <filtering>false</filtering> <directory>src/main/resources</directory> </resource> <resource> <directory>src/main/html</directory> </resource> <resource> <filtering>false</filtering> <directory>src/main/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </resource> </resources> <testResources> <testResource> <filtering>false</filtering> <directory>src/test/java</directory> <includes> <include>**</include> </includes> <excludes> <exclude>**/*.java</exclude> </excludes> </testResource> </testResources> If I start the jetty server, I get a MarkupNotFoundException. After storing the .html files to the class files in the src/main/java path, it works and only the properties files are not found. Can you tell me, how I have to modify the pom.xml that it will find the .html and the .properties files in their different paths? Thank you, Andre On Mon, 5 Mar 2012 09:49:38 +0200 Martin Grigorov <mgrigo...@apache.org> wrote: > 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 > -- Andre Schütz <schuetz.an...@gmx.net> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org