[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Events occuring twice  XML
Forum Index -> Development
Author Message
brandt

Power User
[Avatar]

Joined: 12/03/2008 16:37:34
Messages: 45
Location: Bern
Offline

Hi Captain,

in some (not so easy reproduceable) situations events (like mouse clicks) occure twice on the server side.

In our worst case invoices for an order were sent twice to our customer. This was very annoying.

This happens in Swing and in RISC.

Has anyone in the community also observed this behavior?

Captain: Do you have a solution or an idea to solve this problem in general in your framework?

Best regards
Joe
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Joachim,

from internal structuring point of view, it is impossible that an event is sent twice during one server request processing.

So, double-eventing can only be caused by the client sending two events: example the user clicks a button twice (double click) and then two events are processed on server side.

For the BUTTON we have the extra attribute DOUBLECLICKENABLED which you may set to "false". For other functions (e.g. if you use INVOKEEVENT on IMAGE/PANE/...) you have to ensure the avoidance of double processing on application side.

Is it possible that double processing is caused by double clicking?

Regards, Björn

Björn Müller, CaptainCasa GmbH
brandt

Power User
[Avatar]

Joined: 12/03/2008 16:37:34
Messages: 45
Location: Bern
Offline

Hi Björn,

you are right. In most cases a button was double-clicked and that was the reason for the double events.

We now explicitly set the attribute "doubleclickenabled" to false. With this measure double events do not occure any more. Thanks.

But "doubleclickenabled"="false" should be the default value. Why do we have to explicitly set this value?

Another source for double events are line items in a fixgrid. In our applications we have a single click strategy for line items in a fixgrid. So we set the attribute "singleclickexecute" to "true".
But sometimes our users are impatient and nervous. Then they click on a line item twice. And this double click leeds to two events on the server side.

I think a fixgrid with "singleclickexecute" = "true" should not react on double clicks anymore.

Is there a possibilty to achieve this ?

Best regards
Joe
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team