I would like to use the following in UIBinder so that I can programmatically set href links in my code.
<g:HTMLPanel> <g:Anchor ui:field="link"> <g:InlineLabel ui:field="firstName"/> <g:InlineLabel ui:field="lastName"/> </g:Anchor> </g:HTMLPanel>
When I try to do this, I get:
ERROR: Found widget in an HTML context Element <g:InlineLabel ui:field='firstName'> (:7).
How can I embed widgets inside an anchor? I used to resort to using:
<a id="myAnchor"> etc... </a>
And then manipulating the DOM in my code to install HREF, but that is ugly. Is there a better way?
gwt uibinder
George Armhold
source share