title: GWT - Is it possible to create new HTML elements (from the server) or i can just to update the ones loaded on the client?
body: <p>Im new about this technology, but I would like to know if is possible to create new object (html elements, such div/span/and so on...) dinamically on server and send it to the client, or if i can just load the ones made on client-side when i develop it in the application.</p>
  
  <p>I don't ask how to do it (i think its a delicate argument), but if I can, and (if yes) where i can get some stuff/example/tutorial to do this.</p>
  
  <p><strong>Example</strong></p>
  
  <p>What i usually do :</p>
  
  <pre><code>...
  public void onSuccess(Boolean result) {
      if(result) {
          myFunction();
      }
  }
  
  ...
  
  myFunction() {
      InlineLabel label=new  InlineLabel();
      this.add(label)    
  }
  </code></pre>
  
  <p>What im looking for :</p>
  
  <pre><code>...
  public void onSuccess(InlineLabel result) {
      this.add(result) 
  }
  </code></pre>
  
  <p>So, i don't need to load in advance the Object, but load them only if i click on some button (or if i perform an action). This will save a lot of code (that is inutil, if i don't do any action) loaded (as JavaScript) on the client.</p>
  
  <p>As usual, thanks for your time!</p>