Comment
Comment by kls
Why not work with a JavaScript front-end framework like Dojo or Require.js/Backbone/jQuery? while it is a little bit of upfront learning it is in my experience far more maintainable and a faster development cycle. There are a lot of good REST frameworks for Java on the back-end that require very little in the way of configuration and working directly with JavaScript on the front-end simplifies a lot of issues.