I know you indicated the state should be preserved service-side, but have you considered storing the values used in the search on the client side in localStorage ? When the angular app page is rendered, you could check if any of those values are available in local storage and pre-fill the search parameters based on that ? Just a thought, HTH F
On Tuesday, February 4, 2014 12:10:13 PM UTC-5, Andrew Ketner wrote: > > Here is the basic problem. In a single page angular application. Say > you have a page withe 60 fields of text boxes, combo boxes, radio buttons, > and check boxes to narrow your search parameters. You enter your > criteria, click search. You get a data grid of data. You choose one of > the items in your grid, That takes you to the detail page. You realize > that's the wrong dude so you click the back button. What happens in > angular is when you get to the previous page, all the data you entered is > gone and it's back to default, you have to renter all your criteria. > > Now angular has a deep link tracking system built into its routing system > that will put all of those parameters into the URL, but the problem is we > have search pages with so many fields that it's impractical to put them > into the URL like that. What we really need is an old school view state > system similar to what we had to build in the days of php and asp, > > I need some way to capture the view state and save it off to the server > in either a cache or a redis server, It has to be server side because the > amount of data is too big for cookies and the users will actually be > jumping outside the angular app, into the legacy struts app, and then back > buttoning back into the angular app. When the user back buttons back into > the angular app, the thing has to go back to the server, get the view state > object, and rebuild the view state to restore where the user was when they > left. > > > ANY HELP OR IDEAS WOULD BE GREATLY APPRECIATED > > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
