Before I say anything else: yes, I know authorization needs to be done on the server-side. Even so, the client-side app still has to hide the GUI elements that don't apply to the logged-in user.
Having said that, here's the question: are there any role-based declarative authorization frameworks for rich browser-based JavaScript web apps?
Background: with browser-based JavaScript web apps (GWT, ExtJS, etc) there is generally no need for dynamic server-side view generation since the entire app can be downloaded as static files and all view transitions are made in the browser. Implementing role-based security therefore either requires dynamic GUI customization after the user logs in and the app loads, or dynamic generation of the app's files on the server-side after login, before anything is downloaded to the client (could be built and cached too). This SO question talks about these approaches: How to use Ext JS for role based application
Thanks!