Search code examples
htmlgwtuibinder

Gwt set label text as lesser than(<) sign using UiBinder


I have the following code for a widget in UiBinder

<g:HorizontalPanel>
<b:Label>&lt;</b:Label>
<b:TextBox ui:field="lowerLimit" addStyleNames="lowerLimitTextBox"></b:TextBox>
<b:Button icon="COPY" addStyleNames="copyAll copyAllLower">Copy To All</b:Button>
</g:HorizontalPanel>

On the page it turns up as &lt; instead of < How can I specify the label text to show up as < from within UiBinder?


Solution

  • Have you tried like this ?

    <g:Label  text="&lt;"></g:Label>
    

    Make sure your doctype should like <!doctype html>