Panel switching and back button
Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole
Re: Panel switching and back button
yes, with Ajax On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote: I would expect that to happen by default. Replacing a panel should create a new page version which should change the Page URL. Are you using AJAX? Thomas On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole
Re: Panel switching and back button
Aha, the problem is that ajax does not cause a history entry to be created. I've seen workarounds for this (not with wicket, though) which reload a hidden IFrame each time they make a relevant change. I can't see right now how that helps you in wicket, tough. Thomas On Thu, Jun 26, 2008 at 1:56 PM, Cristi Manole [EMAIL PROTECTED] wrote: yes, with Ajax On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote: I would expect that to happen by default. Replacing a panel should create a new page version which should change the Page URL. Are you using AJAX? Thomas On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole
Re: Panel switching and back button
Hmhhh... isn't there a Javascript function which allows to replace the URL of the current page in the history? I'm not sure this would work, but couldn't you try this: 1) replace the panel 2) reload the IFrame 3) now manipulate the browser history to point to the currect URL for the current page version Thomas On Thu, Jun 26, 2008 at 3:08 PM, Cristi Manole [EMAIL PROTECTED] wrote: yes, I know, I'm trying to figure out a solution myself. I was sure though somebody else ran into this. :) On Thu, Jun 26, 2008 at 3:28 PM, Thomas Mäder [EMAIL PROTECTED] wrote: Aha, the problem is that ajax does not cause a history entry to be created. I've seen workarounds for this (not with wicket, though) which reload a hidden IFrame each time they make a relevant change. I can't see right now how that helps you in wicket, tough. Thomas On Thu, Jun 26, 2008 at 1:56 PM, Cristi Manole [EMAIL PROTECTED] wrote: yes, with Ajax On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote: I would expect that to happen by default. Replacing a panel should create a new page version which should change the Page URL. Are you using AJAX? Thomas On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole
Re: Panel switching and back button
will try that. tks On Thu, Jun 26, 2008 at 4:16 PM, Thomas Mäder [EMAIL PROTECTED] wrote: Hmhhh... isn't there a Javascript function which allows to replace the URL of the current page in the history? I'm not sure this would work, but couldn't you try this: 1) replace the panel 2) reload the IFrame 3) now manipulate the browser history to point to the currect URL for the current page version Thomas On Thu, Jun 26, 2008 at 3:08 PM, Cristi Manole [EMAIL PROTECTED] wrote: yes, I know, I'm trying to figure out a solution myself. I was sure though somebody else ran into this. :) On Thu, Jun 26, 2008 at 3:28 PM, Thomas Mäder [EMAIL PROTECTED] wrote: Aha, the problem is that ajax does not cause a history entry to be created. I've seen workarounds for this (not with wicket, though) which reload a hidden IFrame each time they make a relevant change. I can't see right now how that helps you in wicket, tough. Thomas On Thu, Jun 26, 2008 at 1:56 PM, Cristi Manole [EMAIL PROTECTED] wrote: yes, with Ajax On Thu, Jun 26, 2008 at 2:15 PM, Thomas Mäder [EMAIL PROTECTED] wrote: I would expect that to happen by default. Replacing a panel should create a new page version which should change the Page URL. Are you using AJAX? Thomas On Thu, Jun 26, 2008 at 10:07 AM, Cristi Manole [EMAIL PROTECTED] wrote: Hello, I am implementing navigation through my application by switching panels. When the user presses the back button, I'd like to show the previously displayed panel. Is this possible? Thanks, Cristi Manole