|
|
Re: Problems with too many clicks on buttons [message #30829 is a reply to message #30794] |
Mon, 04 June 2007 12:02 |
Roberto Sanchez Messages: 82 Registered: July 2009 |
Member |
|
|
Definitively, my problem is described in this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=178506
Roberto Sánchez escribió:
> It's possible that my problem is related with post "Firefox Problem",
> posted by Thomas (3 days ago). I've not seen it before.
>
> Regards.
> Roberto
>
> Roberto Sánchez escribió:
>> Hi, I'm finding problems with several buttons due to user clicks on
>> them too many times, then server recive too many requests, and In any
>> cases get crazy and It has a strange bahaviour
>>
>> I'll tryed to avoid it with this, but, It doesn't work as I would like:
>>
>> myButton.addSelectionListener( new SelectionAdapter() {
>> public void widgetSelected( final SelectionEvent event ) {
>> if (!MyDialog.this.aux) {
>> MyDialog.this.myButton.setEnabled(false);
>> MyDialog.this.aux = true;
>> MyDialog.this.sucess = myMethodAction();
>> // If my actions returns false then then Dialog and Button
>> come back to be active
>> if (!MyDialog.this.sucess) {
>> MyDialog.this.aux = false;
>> MyDialog.this.loginButton.setEnabled(true);
>> } else
>> MyDialog.this.loginButton.dispose();
>> }
>> }
>> });
>>
>> With this code, I get that myMethodAction(); was executed only one
>> time, but I would like that Server just only received 1 request. How
>> can I do that ?
>>
>> I've tryed removing SelectionListner but it doesn't work fine for me.
>>
>> Thanks in advance.
>> Roberto.
|
|
|
Powered by
FUDForum. Page generated in 0.01884 seconds