I created a login composition that I display at my entry point for the user application. After entering the username and password, I send the username and password to the server via RemoteService and get back the object containing the ClientSession. If ClientSession is a valid object (recognized username and password), I want to display the main application panel, otherwise I want to display the login dialog again (with an error message).
My question is, during an asynchronous call on the server, how do I mask the screen so that the user cannot click anything while the session is received from the server?
I know that the login should be fast, but the Session object contains many cached Client Side values for the current user, which is used to create the main panel. This may take longer than a second or up to 5 seconds (I cannot control the speed of the underlying infrastructure, unfortunately), so I want to hide the screen until a timeout is reached, and then ask the user to try again.
I did this exact operation before using GWT Ext, but the vanilla GWT seems to have a lot less samples.
thank
Chris
Chris source
share