Maybe users cannot 'input' HTML, but in some cases you still want to use
an inputtext to display HTML.
Examples:
1) You want to display HTML formatted text, but you also want to have
inputtext look&feel
2) To insert pre-formatted text with line breaks in an inputtext. Just
one day ago I've responded to this thread [1] in the German OpenLaszlo
forum and that thread was about exactly this issue!
[1] http://laszlo-forum.de/viewtopic.php?f=2&t=813
Start here:
http://jira.openlaszlo.org/jira/browse/LPP-7533
and follow the links.
I believe the current received wisdom is that input text is _not_ HTML unless
you ask for it. (And if you think about it, you should never ask for it
either. How could a user 'input' HTML?)
On 2010-03-31, at 12:00, Henry Minsky wrote:
>/ OK, here's another test case that's failing in the lztext-textheight suite
/>/
/>/ <inputtext fontsize="20" fgcolor="red" id="it5"
/>/ multiline="true">E<br/>F</inputtext>
/>/
/>/ The test expects that to come out as two lines, however it actually gets
/>/ xml-quoted by the compiler
/>/ and, given that the input text view treats text as plaintext, the field
/>/ displays the literal string "E<br/>F" as a single line.
/>/
/>/
/>/
/>/ In LPS 3.4, you get a compiler warning
/>/
/>/ element "br" not allowed in this context. Check whether it is spelled
/>/ correctly, and whether a class with this name exists.
/>/
/>/ However in trunk the compiler just passes the XML through to the input text
/>/ constructor.
/>/
/>/ What is the correct desired behavior here??
/>/
/>/ --
/>/ Henry Minsky
/>/ Software Architect
/>/ hminsky at laszlosystems.com
<http://www.openlaszlo.org/mailman/listinfo/laszlo-dev>
/