Checkbox issue

Hi,

I have a form with a check Field on it.
The onDataChange of this field shows a form in Dialog.

That works fine when the popupform is called with modal=false. When modal is true, there is a problem.

So :

when checkbox is checked and you click the checkbox, the checkbox becomes uncecked and the form in dialog is shown

But when modal = true :

when checkbox is checked and you click the checkbox, the checkbox becomes uncecked, the form in dialog is shown AND the checkbox becomes checked again !!

Is this a known issue ?? ( happens in 4.1.5 and in 5.1 rc2)

Regards,

Additional info :

After adding some application.output statements, I notice that in case of a modal dialogue form
the onDataChange is executed twice.

Once by me clicking, and the second time somehow induced by Servoy ???

Also, when I change the field type from check to textfield and then change value from 0 to 1 or 1 to 0
it works fine in all cases.

Regards,

Additional info 2:

In the documentation I see that in smartclient the code after the call to showFormIndialogue is not executed
until the form in dialogue is closed.

This is not the case : if I put an application.output after the line whith the call to showFormIndialogue
the output is displayed in the console output when the form in the dialogue is stil open.

Created a case for this : 272480

regards,

I couldn’t reproduce this issue using Servoy rc2, Windows Vista, java 1.6.0 update 17; Are you on Mac ? What Java version ? Also the execution stops when showing a modal dialog in Smart Client (as stated in documentation) .

I reopened the case.

We see the issue on windows 7 and windows2003 on java 1.6_018 and in Servoy 5.1 rc2 and 4.1.5

We will do a test with java 1.6_017 and get back to you.

As far as stopping execution after form in dialogue you are correct.
This works as documented.
It seems to go wrong, but that was due to the fact that the ondatachange is executed twice.

Regards,

It happens from developer too ?

Yes it does.

But we found out that only java 1.6_018 causes the issue.

We downgraded a development system to 1.6_017 and it works without problems.

Question : In these cases, is Servoy going to contact Sun about this ??

Regards,

Indeed it only happens in Java 1.6.0_18 . I am currently investigating the cause.

Hans Nieuwenhuis:
Yes it does.

But we found out that only java 1.6_018 causes the issue.

We downgraded a development system to 1.6_017 and it works without problems.

Question : In these cases, is Servoy going to contact Sun about this ??

Regards,

I submitted a bug report to Sun. Let’s hope they will fix it soon.

What is the status of this issue. I ran into this same problem and filed a case for it (338141).

Is it really a java problem? If so didn’t they solve it yet?

Running java 1.6.0_22 on windows XP.

No one experienced this problem?

Maybe someone from Servoy can react on this.

michel:
No one experienced this problem?

Maybe someone from Servoy can react on this.

We are currently investigating this issue, apparently Oracle will not fix it (http://bugs.sun.com/bugdatabase/view_bu … id=6988854).

That’s a shame. Thanks for the reaction.

This issue will be fixed in Servoy 5.2.4 .