title: DOM.getElementById in GWT doesn't seem to work
body: <p>I've the following code snippet:</p>
  
  <pre><code>myPanel.getElement().setId("left-content");
  //...
  //...
  Element e = DOM.getElementById("left-content");// this returns NULL!
  </code></pre>
  
  <h2>Update</h2>
  
  <p>Here is a longer code snippet:</p>
  
  <pre><code>public class RootComposite extends Composite
  {
      public RootComposite(int comboSelectedIndex)
      {
  
          VerticalPanel verticalPanel = new VerticalPanel();
          initWidget(verticalPanel);
          VerticalPanel containerPanel = new VerticalPanel();
          containerPanel.setSpacing(1);
          verticalPanel.add(containerPanel);
          verticalPanel.setSize("100%", "100%");
  
          RightPanelMainComposite rightPanelMainComposite =  new RightPanelMainComposite();
  
          VerticalPanel rightcolVerticalPanel = new VerticalPanel();
          rightcolVerticalPanel.setStyleName("rightcol");
          VerticalPanel searchVerticalPanel = new VerticalPanel();
          searchVerticalPanel.setStyleName("search");
          rightcolVerticalPanel.add(searchVerticalPanel);
          searchVerticalPanel.add(rightPanelMainComposite);
  
          ContentComposite contentComposite = new ContentComposite();
  
          HorizontalPanel leftContentPanel = new HorizontalPanel();
          containerPanel.add(leftContentPanel);
          leftContentPanel.getElement().setAttribute("id", "left-content");
  
          DOM.getElementById("left-content"); // returns NULL !!!
          // ....
      }
  </code></pre>
  
  <p>The above Composite is being added to the <code>RootPanel</code>.</p>