I think that you need a deferred command to handle this. Limit your
clickhandler to set the infoLabel to Beginning and then launch a
deferred command who's execute method performs the search and then
updates the label.
In this way, the execution thread will finnish, causing the screen to
be
thanks very much Danny.
On Jul 13, 8:28 pm, Danny Goovaerts danny.goovae...@gmail.com wrote:
I think that you need a deferred command to handle this. Limit your
clickhandler to set the infoLabel to Beginning and then launch a
deferred command who's execute method performs the search and then
hello all:
i came across a strange problem which seems quite simple:
i have a button and a label on a panel, the button has been
registered a listener:
Button searchButton = new Button( Search );
searchButton.addClickHandler( new ClickHandler()
{
@Override
Is that a RPC call for searching...?
Please explain what are you doing actually for searching...?
--
Aditya
On Wed, Jul 7, 2010 at 1:52 PM, Shelley gsun...@gmail.com wrote:
hello all:
i came across a strange problem which seems quite simple:
i have a button and a label on a panel,
Hey Shelley,
a bit of further information is missing but may it be that you issue
an RPC between infoLabel.setText(Beginning); and
infoLabel.setText(Completed);?
If so you simply forgot the async nature of GWT RPC. Your code in
onClick(...) will not sort of stop or wait until the RPC
thank Andreas and Aditya for your explanation.
however the problem has nothing to do with RPC, the search operation
i mentioned above is simply a local operation such as sort a large
chunk of data which will take seconds to completed. meanwhile the
client is unresponsive until the click OnClick()