|
Re: [DateTime] Selection event lost [message #656195 is a reply to message #656168] |
Thu, 24 February 2011 14:19 |
Ivan Furnadjiev Messages: 2427 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 #656340 is a reply to message #656330] |
Fri, 25 February 2011 08:17 |
Ivan Furnadjiev Messages: 2427 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04134 seconds