database - GWT and notifyAll() (java.lang.Object) -


i'm making call database. result must used subit form. want wait until result db comes. need synchronization. idea use object.notifyall() java.lang, gwt doesn't support this. there equivalent method in gwt notifyall()?

edit1: i'm using gxt formpanel submit data. can change type of buttonbar, think, addsubmitcompletehandler not solve problem.

here code snippet:

final button submit = new button("submit"); submit.addlistener(events.onclick, new listener<buttonevent>() {     @override     public void handleevent(buttonevent be) {         // 1. data database (here must wait response db)         // 2. submit form                    } );  final formpanel buttonbar = new formpanel(); buttonbar.addstylename("abuploadfield"); buttonbar.setheadervisible(false); buttonbar.setborders(false); buttonbar.setstyleattribute("margin", "0px"); buttonbar.setencoding(formpanel.encoding.multipart); buttonbar.setmethod(formpanel.method.post); buttonbar.add(file); buttonbar.add(submit); buttonbar.setaction("myurl"); 

edit2: want sequence id db (this step 1 in event handler). id used submit. on submit i'm filling tabels in db data. id used identify, user started submit , user want show dialog message "submit successful". hope, understand mean :) (sorry, english ist not good)

like said, gwt doesn't support object.notifyall(). if you're using formpanel submitting values, can addsubmitcompletehandler , notified when results come back. same thing if you're using requestbuilder - supply requestcallback fired when response request received.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -