I want to descript the context. Some one write a web application based on wicket.Many pages uses ajax. I encoutered a strange problem. After 5 ajax modal windows are poped up.The brower will give me a warming dialog to tell me that the current browse page will be closed.Then the page is redirected to a login page.Sure ,this means the session is out.
I tries someway: 1 Clear the IE cookies. 2 Clear the tomcat workdir 3 force the tomcat use url-rewrite mode. 4 close the IE cookies. Then the application works fine. Maybe you need close the browse cookie and use tomcat url-rewrite both. Try it. > ----- Original Message ----- > From: "Igor Vaynberg" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; <wicket-user@lists.sourceforge.net> > Sent: Wednesday, July 18, 2007 2:49 PM > Subject: Re: [Wicket-user] Modal Window and "Page Expired". > > >> On 7/13/07, Laurent Brucher <[EMAIL PROTECTED]> wrote: >>> >>> Hi all, >>> >>> There was a post last December about the same problem that I'm facing >>> right now, which is getting a page expired error page after I close a modal >>> window. >>> The post was called "Firefox and ModalWindow" and seemed to talk about the >>> issue for FF only. >>> I've encountered the problem first with FF (2.0.0.4). After reading the >>> post, I tried with IE7 and it worked ok (that was this afternoon). >>> This evening, neither IE7 or FF work anymore. Darn! Clearing cookies and >>> stuff don't change a thing. >>> Oh, and of course, the Ajax ModalWindow example works just fine (my code >>> is heavily inspired from that example)... >>> I'm using Wicket 1.2.6, Tomcat 5.5.20, Jdk1.6u2. >>> >>> Have you guys shed any light on this issue at all? >>> I've tried to trace the code, but as I'm rather new to Wicket, I couldn't >>> really figure out what's going on... >>> >>> Anything I can do to help address this? >>> >> >> i wonder, clear cookies in firefox and try again. i know there was a similar >> problem if you didnt set the cookie name in the modal window using >> setcookiename(), but looks like you did that. still, try clearing the >> cookies. >> >> -igor >> >> >> >> >> Below is the code I use, just in case. >>> >>> Reagrds, >>> Laurent. >>> >>> >>> // Page containing the modal window >>> public class MainPage extends WebPage { >>> public MainPage() >>> { >>> ... >>> add( *new* PreferredStationsDialog("prefStationsDialog") ); >>> ... >>> } >>> } >>> >>> // The modal window impl. >>> public class PreferredStationsDialog extends ModalWindow { >>> * public* PreferredStationsDialog(String id) >>> { >>> * super*(id); >>> >>> setTitle("xyz"); >>> setCookieName("prefStationsDialog"); >>> setPageMapName("prefStationsDialogPageMap"); >>> setPageCreator( *new* ModalWindow.PageCreator() { >>> @Override >>> * public* Page createPage() { >>> * return* >>> *new*PreferredStationsDialogPage(PreferredStationsDialog. >>> *this*); >>> } >>> }); >>> >>> setCloseButtonCallback(*new* ModalWindow.CloseButtonCallback() { >>> * public* *boolean* onCloseButtonClicked(AjaxRequestTarget >>> target) { >>> * return* *true*; >>> } >>> }); >>> } >>> } >>> >>> // The content of the modal window, as a Page >>> public class PreferredStationsDialogPage extends WebPage >>> { >>> * public* PreferredStationsDialogPage( *final* PreferredStationsDialog >>> dialog ) >>> { >>> * super*(); >>> >>> add( *new* AjaxLink("button.save") { >>> @Override >>> * public* *void* onClick(AjaxRequestTarget target) { >>> dialog.*close*(target); >>> } >>> }.add( *new* Label("text", "Save")) ); >>> >>> add( *new* AjaxLink("button.cancel") { >>> @Override >>> * public* *void* onClick(AjaxRequestTarget target) { >>> dialog.*close*(target); >>> } >>> }.add( *new* Label("text", "Cancel")) ); >>> } >>> } >>> >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Wicket-user mailing list >>> Wicket-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wicket-user >>> >>> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user