Very cool. Thank you. Geoff
> On 21 Feb 2019, at 2:57 pm, Carlos Montero Canabal > <[email protected]> wrote: > > Hi Geoof, > > Yes, I have to use to create a spa. I have an simple example here > http://tapestry5.dev-util.com/specialpages/spa/block1 . You can click on > link Page2 and Page1 an check the ajax requests and the url on browser. You > can click then on Back button and and see how the url and zone content > updates with the specific content. The main tasks are: > - Create the restore url for Back button > - Create a method to init the zone when a user Reload the page (in my > example I do this on IndexPage) > > I hope the example helps you. > > Regards > > Carlos Montero > > El jue., 21 feb. 2019 a las 5:39, JumpStart (< > [email protected]>) escribió: > >> Has anyone made use of the browser History API with Tapestry AJAX calls? >> >> I have an essentially single page app, all done with Zones and async event >> links. Tabs down one side flips between major functions (eg. Clients, >> Calendar, Billing), replacing the main pane contents, and clicking on >> buttons and links in the pane will often drill into a sub-function (eg. >> View Client, Pay Invoice). All requests are async=“true” and render Zones. >> >> The problem is that the URL in the browser never changes, so if you choose >> Refresh then you’ll go back to the initially displayed page. >> >> But, the app does support query params in the URLs that can navigate to >> the right place (eg. ?fun=CLIENT&sub=UPDATE). I guess what I’d like is a >> way to tell AjaxResponseRenderer what URL I’d like handed to the browser >> History API, and for it to be done automatically. >> >> Cheers, >> >> Geoff >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
