Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » [DateTime] Selection event lost
[DateTime] Selection event lost [message #656168] Thu, 24 February 2011 12:31 Go to next message
Oliver B. is currently offline Oliver B.Friend
Messages: 38
Registered: November 2010
Member
While testing our RAP-application I found a strange behaviour with the DateTime control:

I have a selection listener to get the changes on server-side. In my test case I changed the value of the DateTime control and quickly leave the dialog by pressing the ok button.
The event is never sent to the server. If I do this a littler slower the event is send.

There seems to be a race condition. If I try the same with the Text control it works fine, even when I quickly close the dialog.

The same is reproduceable with the RAP Demo-Site. When you change the date und quickly leave the property page the event is not send. But the value of the control is changed the next time you enter the property page.

Is this a bug?
Or can I do something to prevent this behaviour?
Re: [DateTime] Selection event lost [message #656195 is a reply to message #656168] Thu, 24 February 2011 14:19 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Oliver,
if I understand correctly, you have a DateTime control inside a Dialog.
Pressing the OK button on a dialog will dispose the dialog and all its
child controls. DateTime control send its changes from client to the
server once every 500ms (to prevent generation of multiple requests by
changing the selection with spinner, key events and so on). I think
that, in your case, the DateTime widget is disposed in this interval of
500ms before the new selection is sent to the server. If you think that
this is a major issue for you, please file a bugzilla.
Best,
Ivan

On 2/24/2011 2:31 PM, Oliver wrote:
> While testing our RAP-application I found a strange behaviour with the
> DateTime control:
>
> I have a selection listener to get the changes on server-side. In my
> test case I changed the value of the DateTime control and quickly
> leave the dialog by pressing the ok button. The event is never sent to
> the server. If I do this a littler slower the event is send.
>
> There seems to be a race condition. If I try the same with the Text
> control it works fine, even when I quickly close the dialog.
>
> The same is reproduceable with the RAP Demo-Site. When you change the
> date und quickly leave the property page the event is not send. But
> the value of the control is changed the next time you enter the
> property page.
>
> Is this a bug?
> Or can I do something to prevent this behaviour?
Re: [DateTime] Selection event lost [message #656330 is a reply to message #656195] Fri, 25 February 2011 07:21 Go to previous messageGo to next message
Oliver B. is currently offline Oliver B.Friend
Messages: 38
Registered: November 2010
Member
Hi Ivan,

your explanation is correct. That is excatly my problem.

Why does ist work with Text-controls and modify listeners. There seems to be the same delay, but no event is lost even when closing the dialog.

Regards,
Oliver
Re: [DateTime] Selection event lost [message #656340 is a reply to message #656330] Fri, 25 February 2011 08:17 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Oliver,
in Text widget, the text/modify event is send to the server with the
"next" request, regardless it is triggered by the text or other widget.
In your case the modify event is sent with the request from the "OK"
button. Maybe it's possible to do the same with the DateTime. If you
think that this is important for you, please file a bugzilla.
Best,
Ivan

On 2/25/2011 9:21 AM, Oliver wrote:
> Hi Ivan,
>
> your explanation is correct. That is excatly my problem.
>
> Why does ist work with Text-controls and modify listeners. There seems
> to be the same delay, but no event is lost even when closing the dialog.
>
> Regards,
> Oliver
Re: [DateTime] Selection event lost [message #656729 is a reply to message #656168] Mon, 28 February 2011 10:34 Go to previous message
Oliver B. is currently offline Oliver B.Friend
Messages: 38
Registered: November 2010
Member
Hi Ivan,

thanks for your furher explanations.

I filed a bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338387

Regards,
Oliver
Previous Topic:problem, when use SessionStoreListener() and UICallBack.activate()
Next Topic:Problem with RAP+BIRT target platform
Goto Forum:
  


Current Time: Fri Mar 29 12:57:50 GMT 2024

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

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

Back to the top