title: How to display GWT widgets on RootPanel?
body: <p>I have a <code>&lt;div&gt;</code> in <code>My.html</code> file:</p>
  
  <pre><code>&lt;html&gt;&lt;head&gt;
  &lt;script type="text/javascript" language="javascript" src="
   path/biz.path.nocache.js"&gt;&lt;/script&gt;&lt;/head&gt;
   &lt;div id = "div_test"&gt; &lt;/div&gt;
  </code></pre>
  
  <p>Now i wrote a <code>java</code> class which fetch the <code>test division</code> using <code>Dom</code>.</p>
  
  <pre><code>private void AddWidget() throws Exception{
   _obj = new testWidget(this._session);
   _obj.setSize("100%", "100%");
   _obj.AddTestWidget();
   RootPanel rootpanel = getViewRootPanel(div_test); // returns the division id 
   rootpanel.clear();
   rootpanel.add(_obj);   
  }
  </code></pre>
  
  <p>and following is <code>TestWidget.java</code>:</p>
  
  <pre><code>public class TestWidget extends ContentContainer{
    HorizontalPanel _base = new HorizontalPanel();
    protected FlexTable _bill = new FlexTable();
    Label lblTitle;
  
    public TestWidget(Session s) {
      super(s);
      _base.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);
      _base.setWidth("100%");
      initWidget(_base);
      this._session= s;
      _inheritwidget = new InheritWidget(session);
    }
    public Widget AddTestWidget() {
      System.out.println("In widget");
      lblTitle= new Label("Details");
      lblTitle.setStyleName(Resources.INSTANCE.cssElements().labelBig());
      lblTitle.getElement().getStyle().setPadding(3, Unit.PX);
      _inheritwidget .setWidget(1, 0, lblBillingTitle);
      _inheritwidget .setWidget(2, 0, billingWidget);
      _base.add(_billing);
  return _base;
  }
  }
  </code></pre>
  
  <p>where <code>InheritWidget</code> class is extended from <code>ContentContainer</code>.
  I also check the console and it shows me <code>In Widget</code>. It means the flow of code is right. 
  Please tell me what should i do to load the content of <code>AddTestWidget</code> in <code>HTML div</code>.</p>
  
  <p>Is there any part which i am missing?</p>