I am currently working on a new Java project which relies on Spring MVC architecture (classical front controller-> dispatcher-> models and jsp views). However, as most of our views need Ajax dynamicity (jQuery), I am willing to use Require.js and Backbone.js frameworks mainly to structure the JavaScript code.
The problem is that, since my application is not SPA, I will have to load the js resources for each page request therefore losing state in JavaScript. That means that I will somehow have to let alone the Router and Model capabilities of Backbone which make no sense to that effect.
In that case, would it still be necessary to use Backbone in such a scenario? Is Require.js advised in such an architecture? Or will I be better off giving up these two technologies which are a perfect fit for SPA mainly. Has anybody had experience with it (off-SPA)?
Thanks a bunch, Jimmy