Monday, February 15, 2016

Use synchronous RPC on browser close ?

Hey Guys, 

we have a very heavy problem. 

If a user clicks the edit button in the webpage, the user sets a lock to the databaserecord. 

I know it is not the right way to handle it on the web but I have no choice. 

I also read all the posts about not doing synchronus RPC calls in GWT.
But we need to clean up the lock if the user closes his window or tab. 

We tried onClose() and onBeforeClose() but if we send a call to the server the thread is closed and the server doesn't get the request. 
If we use an alert-message the server will cleanup the lock because the browser waits a few seconds.

Do you have any idea how to handle this problem? 


Thanks in advance
Dominic 

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment