Hi Dave

Thank you very much for your response.

> I have a similar situation for my project.  What I do is make the
> first async call from onModuleLoad() do something like
> 'getPortalAttributes'.  This returns to me info from the server like:
> is the user logged in; is the application in development mode; if the
> user is logged in, what are their permissions.  From there I generate
> menus based on the user's permissions, and configure things like the
> GWT.UncaughtExceptionHandler.  Of course, your application shouldn't
> trust any permissions logic that is applied on the client, but
> determining what menus to show is harmless for me.

That makes sense, but I think I'd prefer not to have that logic in the
front end.

> A different approach is to return the menu structure from the server
> based on a users permissions.

This is more interesting! What would you actually pass back? An XML
structure from which to build the menu? How would you then hook it
into method calls or events to the controller?

--
Thanks
Paul

Paul Grenyer
e: [email protected]
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to