Friday, March 17, 2017

Re: Why do TextBoxes render HTML?

Thank you! Quite right: I was looking at a TextBox used for input, but in view-only rendering, an InlineHTML was being used.

On Thu, Mar 16, 2017 at 6:22 PM, Alberto Mancini <ab.mancini@gmail.com> wrote:
Hello,
i do not understand actually, a gwt TextBox (com.google.gwt.user.client.ui.TextBox) is an input type=text and not a span,
maybe you are using some other library ?

The following pic shows the textBox in the standard sample application and as you can see the textbox not a span. 

Do i miss something ?

Regards,
   Alberto

On Thu, Mar 16, 2017 at 4:52 PM Joshua Fox <joshua@freightos.com> wrote:
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.

--
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.



--
JOSHUA FOX
Principal Software Architect | Freightos


 (Israel): +972-545691165 |  (US):  +1-3123400953 | Skypejoshuafox.freightos
Smoother shipping with the world's online freight marketplace.

--
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