On Sunday, December 12, 2010 12:37:56 AM UTC, cri wrote:Pete,

I am on the same team as poster. The situation we refer to is the
latter of the two you mention, i.e. based on the users permissions, we
will present one of several GWT views/screens. If we can't do this by
accessing HTTP request headers (it seems strange that there isn't a
way to do this), how can it be done? Thanks




Chuck,

I think you have at least two options open to you.

1) Write data into the hosting HTML page that the GWT app can access.
Not sure on the best elements to choose - perhaps a <form> without
hidden field(s) and no submit button? I think the GWT app would be able
to access these elements using RootPanel.get("theId"). A criticism of
this method would be the visibility of it to an end-user who views the
source of the page.

2) Set a "usertype" cookie in the server. This can be inspected by the
GWT app.

Caveat: I'm a newbie to this (haven't started my own project - still
getting to grips with development environment).

Thanks,

Pete

-- 
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