Thanks . But I have specified different pagemap name. Example:
> modalRD.setPageMapName("modalRD"); > modalRD.setCookieName("modalRD");
after using setMaxPageMaps() to increase total number of pagemap, problem is still existing. 2007/6/10, Matej Knopp <[EMAIL PROTECTED]>:
I think your problem is that the pages are evicted from pagemap. You'll need to specify different pagemap name for each modal window component (ModalWindow.setPageMapName). Also you might need to increase total number of pagemap (Application.getSessionSettings().setMaxPageMaps()). -Matej On 6/10/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: > A panel is not needed, but an option. As you use a normal page inside > the modal window, I think you run into the limit of versioning. > > Increase your versions or disable versioning for your pages using > ajax. The latter is probably the best for your usecase, popups don't > typically work well with the back button in my experience. > > Increasing the number of versions: > > http://wicket.sourceforge.net/apidocs/wicket/settings/IPageSettings.html > http://wicket.sourceforge.net/apidocs/wicket/settings/ISessionSettings.html#setPageMapEvictionStrategy(wicket.session.pagemap.IPageMapEvictionStrategy) > > Versioning is used in Wicket for keeping track of the browser's backbutton: > > http://cwiki.apache.org/WICKET/browser-back-forward.html > http://cwiki.apache.org/WICKET/faqs.html#FAQs-Versioning > > It usually doesn't work well with Ajax, as the URL in the browser > window doesn't change. Back button support for ajax is scheduled for > after 1.3 > > Martijn > > On 6/10/07, Liu Lin <[EMAIL PROTECTED]> wrote: > > Thanks for your answer. > > > > I am using 1.2.6. > > A panel in the modal window is needed? > > My modal window is a general WebPage. > > Maybe when open 6th modal window, session timeout happens. > > > > My calling modal window's code : > > ------------------------------------------------------------------------------------- > > > > final ModalWindow modalRD = new ModalWindow("modalRD"); > > form.add(modalRD); > > > > modalRD.setPageMapName("modalRD"); > > modalRD.setCookieName("modalRD"); > > modalRD.setPageCreator(new ModalWindow.PageCreator() { > > public Page createPage() { > > return new ModalRDPage(student); > > } > > }); > > > > modalRD.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { > > public void onClose(AjaxRequestTarget target) { > > if (null != student.getResearchDirectionCode() && !"".equals( > > student.getResearchDirectionCode())) { > > collegeName.setModel(new Model(student.getCollegeName())); > > target.addComponent(collegeName); > > } > > } > > }); > > modalRD.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { > > public boolean onCloseButtonClicked(AjaxRequestTarget target) { > > return true; > > } > > }); > > form.add(new AjaxLink("showModalRD") { > > public void onClick(AjaxRequestTarget target) { > > modalRD.show(target); > > } > > }); > > ------------------------------------------------------------------------------------- > > > > > > > > 2007/6/10, Martijn Dashorst <[EMAIL PROTECTED]>: > > > > > > Without code, which wicket version you are using and other important > > > information particular to your problem (like: do you use a panel in > > > the modal window, how many times can you open the modal window before > > > this happens, etc), we can't help you! > > > > > > Asking questions in a smart way: > > > - English version: http://www.catb.org/~esr/faqs/smart-questions.html > > > - Chinese version: http://www.lat30n.cn/doc/oss/smart-questions.html > > > > > > Martijn > > > > > > On 6/10/07, netfork <[EMAIL PROTECTED]> wrote: > > > > > > > > My site uses many many ModalWindow. > > > > Now, find a serious problem. > > > > After I log on the site, I open/close some ModalWindow. > > > > At first, it's all right. > > > > But after I open/close some ModalWindow many times, session timeout > > > > happened. > > > > As a result, please watch screenshots. > > > > Please help me. Thanks. > > > > > > > > http://www.nabble.com/file/p11047290/question.gif > > > > -- > > > > View this message in context: > > > http://www.nabble.com/Session-Timeout-Because-of-ModalWindow.-Help-me%2C-Thanks.-tf3896926.html#a11047290 > > > > Sent from the Wicket - Dev mailing list archive at Nabble.com. > > > > > > > > > > > > > > > > > -- > > > Join the wicket community at irc.freenode.net: ##wicket > > > Wicket 1.2.6 contains a very important fix. Download Wicket now! > > > http://wicketframework.org > > > > > > > > > > > -- > > http://www.ipcat.cn > > > > > -- > Join the wicket community at irc.freenode.net: ##wicket > Wicket 1.2.6 contains a very important fix. Download Wicket now! > http://wicketframework.org >