# Checkbox issue

**URL:** <https://forum.servoy.com/t/checkbox-issue/11725>\
**Category:** Classic Servoy\
**Created:** [February 5, 2010, 7:53pm UTC](https://forum.servoy.com/t/checkbox-issue/11725 "2010-02-05T19:53:26Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 5, 2010, 7:53pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/1 "2010-02-05T19:53:26Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 5, 2010, 9:08pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/2 "2010-02-05T21:08:05Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 5, 2010, 10:22pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/3 "2010-02-05T22:22:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 7, 2010, 11:19am UTC](https://forum.servoy.com/t/checkbox-issue/11725/4 "2010-02-07T11:19:10Z")

</div>

Created a case for this : 272480

regards,

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [February 8, 2010, 9:10am UTC](https://forum.servoy.com/t/checkbox-issue/11725/5 "2010-02-08T09:10:14Z")

</div>

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) .

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 8, 2010, 9:25am UTC](https://forum.servoy.com/t/checkbox-issue/11725/6 "2010-02-08T09:25:19Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [February 8, 2010, 9:40am UTC](https://forum.servoy.com/t/checkbox-issue/11725/7 "2010-02-08T09:40:31Z")

</div>

It happens from developer too ?

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [February 8, 2010, 10:55am UTC](https://forum.servoy.com/t/checkbox-issue/11725/8 "2010-02-08T10:55:42Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [February 8, 2010, 11:03am UTC](https://forum.servoy.com/t/checkbox-issue/11725/9 "2010-02-08T11:03:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [February 8, 2010, 12:37pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/10 "2010-02-08T12:37:57Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@michel](https://forum.servoy.com/u/michel)\
**Post date:** [November 26, 2010, 12:38pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/11 "2010-11-26T12:38:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@michel](https://forum.servoy.com/u/michel)\
**Post date:** [November 29, 2010, 8:20am UTC](https://forum.servoy.com/t/checkbox-issue/11725/12 "2010-11-29T08:20:08Z")

</div>

No one experienced this problem?

Maybe someone from Servoy can react on this.

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [November 29, 2010, 8:27am UTC](https://forum.servoy.com/t/checkbox-issue/11725/13 "2010-11-29T08:27:53Z")

</div>

> 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](http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6988854)).

---

<div class="post-metadata">

**Author:** ![michel](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@michel](https://forum.servoy.com/u/michel)\
**Post date:** [November 29, 2010, 9:59am UTC](https://forum.servoy.com/t/checkbox-issue/11725/14 "2010-11-29T09:59:48Z")

</div>

That’s a shame. Thanks for the reaction.

---

<div class="post-metadata">

**Author:** ![lvostinar](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/lvostinar/32/5248_2.png) [@lvostinar](https://forum.servoy.com/u/lvostinar)\
**Post date:** [November 29, 2010, 1:18pm UTC](https://forum.servoy.com/t/checkbox-issue/11725/15 "2010-11-29T13:18:32Z")

</div>

This issue will be fixed in Servoy 5.2.4 .
