Re: [Wicket-user] Fw: Modal Window and "Page Expired".
Yeah, that's what was done. As you may known, Tomcat's default behavior is to rewrite urls (adding the jsessionid in the url) when cookies are not supported on the client browser. As said, it unfortunately does not change anything and the problem remains. Thanks for the tip though. Laurent. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?? Sent: mercredi 18 juillet 2007 6:15 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Fw: Modal Window and "Page Expired". What i mean is not turn the cookie off in the browser. Just change the server session mode. You can refer http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Original Message - From: "Laurent Brucher" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 18, 2007 1:16 AM Subject: Re: [Wicket-user] Fw: Modal Window and "Page Expired". >I turned off cookies in FFox but that doesn't change anything :( > > As I previously said, the Ajax/ModalWindow sample in the wicket-examples > works fine for me (deployed in the same Tomcat instance as my app). > One difference I found with my environement is that all the URLs in the > examples are bookmarkable. Mine are not. > I don't really know whether this matters at all or not. > > What I can see by tracing the code is that the page that the app is trying > to go back to after the modal window is closed does not exist in the pagemap > anymore. Hence the page expired. I have not figured out why yet but any clue > would be helpful. > > Laurent. > > > _ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of ?? > Sent: mardi 17 juillet 2007 7:27 > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] Fw: Modal Window and "Page Expired". > > > > > Maybe,you can try the server running on url-rewrite mode instead of cookie. > I encoutered the same problem on IE,but the same problem won't happen on FF. > After i change the session mode from cookie to url-rewrite,it works fine. > You also can reverse what i did. > > - Original Message - > From: Laurent Brucher <mailto:[EMAIL PROTECTED]> > To: wicket-user@lists.sourceforge.net > Sent: Saturday, July 14, 2007 4:41 AM > Subject: [Wicket-user] Modal Window and "Page Expired". > > 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? > 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 &g
Re: [Wicket-user] Fw: Modal Window and "Page Expired".
What i mean is not turn the cookie off in the browser. Just change the server session mode. You can refer http://tomcat.apache.org/tomcat-5.5-doc/config/context.html - Original Message - From: "Laurent Brucher" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 18, 2007 1:16 AM Subject: Re: [Wicket-user] Fw: Modal Window and "Page Expired". >I turned off cookies in FFox but that doesn't change anything :( > > As I previously said, the Ajax/ModalWindow sample in the wicket-examples > works fine for me (deployed in the same Tomcat instance as my app). > One difference I found with my environement is that all the URLs in the > examples are bookmarkable. Mine are not. > I don't really know whether this matters at all or not. > > What I can see by tracing the code is that the page that the app is trying > to go back to after the modal window is closed does not exist in the pagemap > anymore. Hence the page expired. I have not figured out why yet but any clue > would be helpful. > > Laurent. > > > _ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of ?? > Sent: mardi 17 juillet 2007 7:27 > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] Fw: Modal Window and "Page Expired". > > > > > Maybe,you can try the server running on url-rewrite mode instead of cookie. > I encoutered the same problem on IE,but the same problem won't happen on FF. > After i change the session mode from cookie to url-rewrite,it works fine. > You also can reverse what i did. > > - Original Message - > From: Laurent Brucher <mailto:[EMAIL PROTECTED]> > To: wicket-user@lists.sourceforge.net > Sent: Saturday, July 14, 2007 4:41 AM > Subject: [Wicket-user] Modal Window and "Page Expired". > > 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? > 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&q
Re: [Wicket-user] Fw: Modal Window and "Page Expired".
I turned off cookies in FFox but that doesn't change anything :( As I previously said, the Ajax/ModalWindow sample in the wicket-examples works fine for me (deployed in the same Tomcat instance as my app). One difference I found with my environement is that all the URLs in the examples are bookmarkable. Mine are not. I don't really know whether this matters at all or not. What I can see by tracing the code is that the page that the app is trying to go back to after the modal window is closed does not exist in the pagemap anymore. Hence the page expired. I have not figured out why yet but any clue would be helpful. Laurent. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ?? Sent: mardi 17 juillet 2007 7:27 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Fw: Modal Window and "Page Expired". Maybe,you can try the server running on url-rewrite mode instead of cookie. I encoutered the same problem on IE,but the same problem won't happen on FF. After i change the session mode from cookie to url-rewrite,it works fine. You also can reverse what i did. - Original Message - From: Laurent Brucher <mailto:[EMAIL PROTECTED]> To: wicket-user@lists.sourceforge.net Sent: Saturday, July 14, 2007 4:41 AM Subject: [Wicket-user] Modal Window and "Page Expired". 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? 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
[Wicket-user] Fw: Modal Window and "Page Expired".
Maybe,you can try the server running on url-rewrite mode instead of cookie. I encoutered the same problem on IE,but the same problem won't happen on FF. After i change the session mode from cookie to url-rewrite,it works fine. You also can reverse what i did. - Original Message - From: Laurent Brucher To: wicket-user@lists.sourceforge.net Sent: Saturday, July 14, 2007 4:41 AM Subject: [Wicket-user] Modal Window and "Page Expired". 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? 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