title: Vaadin - Remove Component from its parent
body: <p>In the Vaadin framework (v7.1.9), how do we remove a <code>Component</code> from it's parent?</p>
  
  <p>I'm only aware of the <code>removeComponent</code> function, but that requires me to get a handle on the parent (ugly):</p>
  
  <pre><code>ComponentContainer parent = (ComponentContainer) child.getParent();
  parent.removeComponent(child);
  </code></pre>
  
  <p>I tried to just <code>detach</code> the child but that removed it from the 'application' without removing the <code>Component</code> from the UI.</p>