Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Problems with too many clicks on buttons
Problems with too many clicks on buttons [message #30761] Mon, 04 June 2007 11:55 Go to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
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.
Re: Problems with too many clicks on buttons [message #30794 is a reply to message #30761] Mon, 04 June 2007 11:59 Go to previous messageGo to next message
Roberto Sanchez is currently offline Roberto SanchezFriend
Messages: 82
Registered: July 2009
Member
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.
Re: Problems with too many clicks on buttons [message #30829 is a reply to message #30794] Mon, 04 June 2007 12:02 Go to previous message
Roberto Sanchez is currently offline Roberto SanchezFriend
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.
Previous Topic:Table from CVS
Next Topic:Passing info between Servlet and EntryPoint
Goto Forum:
  


Current Time: Thu Apr 18 23:43:51 GMT 2024

Powered by FUDForum. Page generated in 0.01884 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top