Monday, August 29, 2011

Re: MVP + GIN + Storing User Data in client Code?

You should not build your Ginjector until you read user role/permissions.

App {
 show_some_loading_ui ();
 rpc_get_user_and_permissions (callback {
   success (..) {
     // hide some_loading_ui.
     // use a DeferredCommand to load the app (#see onModuleLoad2 -P).
   }

   failure (..) {
     // show guest?
   }
 });
}

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ekh-kiRJt20J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment