Thursday, March 16, 2017

Why do TextBoxes render HTML?

Text in a TextBox gets rendered as HTML. Yet TextBox is not a rich-text component; it does not implement HasHTML.

TextBox becomes  a span  in the HTML, which renders as abcxyz.  
<span class="text viewableValue"><b>abc</b>xyz</span> 
See image.

I'd expect it to render literally as <b>abc</b>xyz

Does anyone know what GWT is  doing? How do I set text that is rendered as plaintext?

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment