Hi Rocco, how do you put it in the gwt packages? We use the GWT.jar so I can't put something there.
Do you build gwt from source ? Thanks for your help. Am Montag, 15. Februar 2016 13:19:05 UTC+1 schrieb Rocco De Angelis: > > Hi Dominic, > > take a look to the attached files, we have to solve the same problem so I > hacked something around the gwt-rpc to do a sync rpc call. > But remember this should really only be used in the close method of the > browser because in general sync call are bad for the user experince! > > Some classes need to be put in the com.google.gwt.http.client > and com.google.gwt.xhr.client package to overwirte some methods. > So that's way I need the SyncRpcRequest.gwt.xml which needs to be put in > the com.google.gwt package. > > The default gwt-rpc RemoteServiceProxy always creates a post request, > which can not be cached. I also changed this behavior. > > BR > Rocco > > > If you have some additional question or in the case I forgot a file give > me a short feedback. > I know this solution is ugly but it works. > > Am Montag, 15. Februar 2016 10:33:48 UTC+1 schrieb Dominic Warzok: >> >> 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+unsubscr...@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.