title: How to unselect checkbox in chrome browser
body: <p>in my wicket application I have 3 checkbox in form:</p>
  
  <pre><code>        add(new CheckBox("1").setOutputMarkupId(true));
          add(new CheckBox("2").setOutputMarkupId(true));
          add(new CheckBox("3").setOutputMarkupId(true));
  </code></pre>
  
  <p>form also contain behavior which unselect checboxes</p>
  
  <pre><code>        add(new AjaxEventBehavior("onclick") {
  
              private static final long serialVersionUID = 1L;
  
              @Override
              protected void onEvent(AjaxRequestTarget target) {
  
                  List&lt;Component&gt; components = new ArrayList&lt;Component&gt;();
  
                  if (target.getLastFocusedElementId() != null) {
                      if (target.getLastFocusedElementId().equals("1")) {
                          components.add(get("2"));
                          components.add(get("3"));
                      } else if (target.getLastFocusedElementId().equals("2")) {
                          components.add(get("1"));
                      } else if (target.getLastFocusedElementId().equals("3")) {
                          components.add(get("1"));
                      }
                      for (Component component : components) {
                          component.setDefaultModelObject(null);
                          target.add(component);
                      }
                  }
              }
          });
  </code></pre>
  
  <p>this works good on mozilla browser but in chrome this doesnt work. How I can improve  to work this on chrome too ? </p>
  
  <hr>
  
  <p><strong>UPDATE</strong></p>
  
  <p>problem is in:</p>
  
  <pre><code>target.getLastFocusedElementId() 
  </code></pre>
  
  <p>in mozilla this return what I want but in chrome it always return null but I dont know wh</p>
  
  <hr>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>google chrome has bug in focus element:</p>
  
  <p><a href="http://code.google.com/p/chromium/issues/detail?id=1383&amp;can=1&amp;q=window.focus%20type%3aBug&amp;colspec=ID%20Stars%20Pri%20Area%20Type%20Status%20Summary%20Modified%20Owner" rel="nofollow">http://code.google.com/p/chromium/issues/detail?id=1383&amp;can=1&amp;q=window.focus%20type%3aBug&amp;colspec=ID%20Stars%20Pri%20Area%20Type%20Status%20Summary%20Modified%20Owner</a> </p>
  
  <p>so I need to do this in other way</p>