Under the hood, tapestry converts your component body to a RenderCommand [1]
so there's no way of getting the body content until after it has passed
through a MarkupWriter.
[1]
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/runtime/RenderCommand.html
--
View this message in con
On 2/6/2013 12:13 PM, Lance Java wrote:
> Don't use the tag body, use a component parameter instead much like how the
> outputraw component works.
>
>
I was able to do it with a parameter. I thought that doing it with the
body was more natural, but it looks like maybe not.
Thanks.
Kevin
--
http://tapestry.apache.org/component-parameters.html
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/t5-3-6-HTML-encode-text-tp5719795p5719823.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
Don't use the tag body, use a component parameter instead much like how the
outputraw component works.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/t5-3-6-HTML-encode-text-tp5719795p5719821.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
On 2/6/2013 4:02 AM, Lance Java wrote:
> I'd just write my own component, SpecialOutput, which splits the input on
> CRLF and uses MarkupWriter.write(...) for text you want escaped and
> MarkupWriter.writeRaw(...) for text you don't want escaped.
>
> IMHO I think that using paragraph tags (...) is
I'd just write my own component, SpecialOutput, which splits the input on
CRLF and uses MarkupWriter.write(...) for text you want escaped and
MarkupWriter.writeRaw(...) for text you don't want escaped.
IMHO I think that using paragraph tags (...) is more semantic than
--
View this message in c
cann't you use outputraw?
δΊ 2013/2/6 13:30, Kevin White ει:
I have a chunk of UTF-8 text that came from a database table. It has
embedded CRLFs in it, so that if you grab the text out of the table, it
breaks up into long lines of text with blank lines in between them. The
intention is that a p
Hi Kevin,
the component you're looking for is OutputRaw:
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/OutputRaw.html
If you prefer to code your own component with MarkupWriter you'd do it like
that:
public class PlainOutput {
@Parameter
private String tex
I have a chunk of UTF-8 text that came from a database table. It has
embedded CRLFs in it, so that if you grab the text out of the table, it
breaks up into long lines of text with blank lines in between them. The
intention is that a program capable of word-wrapping the text would then
display it,