title: Click Handler working on widget but NOT on Element
body: <p>I am creating an Anchor as follows:</p>
  
  <pre class="lang-java prettyprint-override"><code>Anchor a = new Anchor( "Click Me" );
  </code></pre>
  
  <p>Then I add a click handler:</p>
  
  <pre class="lang-java prettyprint-override"><code>a.addClickHandler( new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
          GWT.log("Anchor Clicked");
      }
  } );
  </code></pre>
  
  <p>I want to add the Anchor to a LI element. Since I don't have any Widgets for UL and LI, I use the following construct:</p>
  
  <pre class="lang-java prettyprint-override"><code>public class ElementPanel extends ComplexPanel {
  
      public ElementPanel(String tagName) {
          setElement(DOM.createElement(tagName));
      }
  
      @Override
      public void add(Widget w) {
          add(w, getElement());
      }
  }
  </code></pre>
  
  <p>I create my UL element:</p>
  
  <pre class="lang-java prettyprint-override"><code>ElementPanel ul = new ElementPanel(UListElement.TAG);
  </code></pre>
  
  <p>I create a LI element:</p>
  
  <pre class="lang-java prettyprint-override"><code>ElementPanel li = new ElementPanel(LIElement.TAG);
  </code></pre>
  
  <p>I add my Anchor to LI, then I add LI to UL (after which I add to the document):</p>
  
  <pre class="lang-java prettyprint-override"><code>li.add(a);
  ul.add(li);
  </code></pre>
  
  <p>This works fine. If instead I change the previous lines as follows, I don't see a log message:</p>
  
  <pre class="lang-java prettyprint-override"><code>li.getElement().appendChild(a.getElement());
  ul.add(li);
  </code></pre>
  
  <p>Similarly, if instead I try this, I also do not see a message:</p>
  
  <pre class="lang-java prettyprint-override"><code>li.add(a);
  ul.getElement().appendChild(li.getElement());
  </code></pre>
  
  <p>Previously, I had the UL element in the UIBinder. But since I was not successful in adding a click handler to an Element, I have to resort to the above approach. </p>