Checkboxes always checked; NetBeans, Chrome

I’ve boiled down my application to the following:

[code]
package com.accesspoint.vaadin4;

import com.vaadin.annotations.Theme;
import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeListener;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.CheckBox;
import com.vaadin.ui.UI;
import com.vaadin.ui.VerticalLayout;

@Theme(“valo”)
public class HLTest extends UI
{
@Override
protected void init(VaadinRequest request)
{
final VerticalLayout pageLayout = new VerticalLayout();

    final CheckBox showCostCheckBox    = new CheckBox("Xx");
    final CheckBox showNrcCheckBox     = new CheckBox("Yy");
    
    showNrcCheckBox.addValueChangeListener
        (
                new ValueChangeListener() 
                    { @Override public void valueChange(Property.ValueChangeEvent event)
                        {
                            System.out.println("boo");
                        }
                    } 
        );
    
    pageLayout.setMargin(true);
    pageLayout.setSpacing(true);
    pageLayout.addComponents(showCostCheckBox, showNrcCheckBox);
    
    setContent(pageLayout);
}

}
[/code]I’ve done this with and without the change listener and the setting of margin and spacing; they have their expected effects, but make no difference to the basic problem: On this system, (Windows 7, NetBeans, TomCat, Chrome), the two checkboxes appear as already checked, and clicking on them does not change their state.

Clicking on one does activate the listener when I have one. I even tried setting the state to false at that point, and though it recursed once, it didn’t change the display.

I (and someone else) ran this code on another machine, and it runs as expected there. So my question is: What could cause this on my machine? I deleted all files in all Vaadin projects in NetBeans, then uninstalled and reinstalled the Vaadin plugin for NetBeans, and rebooted the machine. I created a new source file to contain the text, and pasted in just the text in the above Java file (i.e., I did NOT copy over all the supporting files, but am using the ones generated by the “new project” and just put text into new classes in it).

I did break out the servlet code from the “MyUI” into its own class, and changed it to invoke the above class instead of MyUI; hopefully that doesn’t break checkboxes.

So what else can I check? I just can’t imagine what could be causing the checkboxes to fail so miserably when I haven’t done much beyond the demo application.

Don’t see any reason in your code. Even checked it on my local machine, works perfectly well. Please add ?debug to yor application’s URL and check using the Debug-window which state-changes get sent.

localhost:8080//?debug

ok, did that, got the following message log:

73ms Starting application vaadin4-220944609
78ms Using theme: valo
79ms Vaadin application servlet version: 7.7.3
97ms Setting hearbeat interval to 300sec.
102ms JSON parsing took 0.17ms
107ms Handling message from server
108ms * Handling resources from server
108ms * Handling type inheritance map from server
110ms Handling type mappings from server
111ms Handling resource dependencies
112ms * Handling meta information
112ms * Creating connectors (if needed)
117ms * Updating connector states
120ms * Handling locales
121ms * Updating connector hierarchy
122ms * Sending hierarchy change events
127ms * Running @DelegateToWidget
128ms * Sending state change events
137ms * Passing UIDL to Vaadin 6 style connectors
138ms * Performing server to client RPC calls
139ms * Unregistered 0 connectors
139ms handleUIDLMessage: 27 ms
140ms Starting layout phase
141ms Measured 0 non connector elements
141ms No more changes in pass 1
141ms Total layout phase time: 1ms
142ms * Dumping state changes to the console
142ms UIDL: undefined
148ms First response processed 729 ms after fetchStart
149ms Processing time was 41ms
149ms Referenced paintables: 4
88574ms Could not determine ApplicationConnection for Overlay. Overlay will be attached directly to the root panel

Don’t know what that tells us…

further info: if I use the “inspect element” feature of the debug window and select the 2nd checkbox, it shows as “Checked: false”. I suspect I’ve got some kind of library cross-up or something, but don’t know how to clear it. I’ve already deleted the projects, cleaned out the server, and replaced the source code…