On 4/29/06, Michael Day <[EMAIL PROTECTED]> wrote:
I understand that we have a javascript/cookie solution, but I don't like it. If I don't need back button support, why can't wicket deal with multiple tabs/windows without javascript? Each time a page containing a form is loaded, keep it in session as a separate object - even if the page is there more than once. Then when the form is submitted, make updates to the correct object (which was found by the form action url). Surely I'm missing something?
We need to know when we can ditch the pages too. In the strategy you propose, we would ditch the second page in history - we always need to keep one to have a path for callbacks (links and forms). This would work exactly the same as doing getPageSettings().setMaxPageVersions(2) in your application's init() function. But... the problem would stay exactly the same as the the page you would need to the first tab/ window gets removed whenever you interact with the second tab/ window. The problem is that without those page maps, Wicket doesn't see the difference between requests comming from different windows. For example: if you have tab A and tab B, and both have the same pagemap, clicking a link on tab B, and then one on tab A is effectively the same as clicking a link on tab A, pushing the back button and clicking a link on tab A again. The only way to have this work is to increase your maxPageVersions size (but that will also increase the size of server memory you need for each session) or using different pagemaps. Pagemaps were always meant for this, but what we recently did was to build in automatic detection. Eelco ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user