title: GWT: how to embed widgets in Anchor with UIBinder
body: <p>I'd like to use the following in UIBinder, so that I can programmatically set the <code>href</code> of the link in my code.</p>
  
  <pre><code>&lt;g:HTMLPanel&gt;
      &lt;g:Anchor ui:field="link"&gt;
           &lt;g:InlineLabel ui:field="firstName"/&gt;
           &lt;g:InlineLabel ui:field="lastName"/&gt;
      &lt;/g:Anchor&gt;
  &lt;/g:HTMLPanel&gt;
  </code></pre>
  
  <p>When I try this I get:</p>
  
  <pre><code>ERROR: Found widget in an HTML context Element &lt;g:InlineLabel ui:field='firstName'&gt; (:7). 
  </code></pre>
  
  <p>How can I embed widgets inside an anchor? Previously I've resorted to using:</p>
  
  <pre><code>  &lt;a id="myAnchor"&gt;
       etc...
    &lt;/a&gt;
  </code></pre>
  
  <p>And then manipulating the DOM in my code to set the HREF, but that's ugly. Is there a better way?</p>