Re: [t5.3.6] HTML encode text

2013-02-06 Thread Kevin White
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 --

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Kevin White
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

[t5.3.6] HTML encode text

2013-02-06 Thread 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 program capable of word-wrapping the text would then display it,

Re: Dynamic form

2009-09-29 Thread Kevin White
On 9/29/2009 5:20 AM, Alfie Kirkpatrick wrote: I made a hashmap backed beaneditform for something similar, so the property conduit just read/writes from the hashmap and the model comes from somewhere else (this was a dynamic search form in my case where the model was a JCR repo). Happy to share

Re: Dynamic form

2009-09-28 Thread Kevin White
On 9/28/2009 3:24 PM, Kalle Korhonen wrote: I would look into using a BeanEditForm and making a BeanModel with all synthetic properties based on your XML configuration. If you have a definite set of parameter types and you can map each into some field type, then you should be able to do it. See h

Dynamic form

2009-09-28 Thread Kevin White
Hello all... I've been using Tapestry for a while...first 3, then 4. My main app is still in 4, but I'm willing to move it to 5...so...we can talk about T5, and apologies for what might be basic T5 questions, because I haven't delved too deeply into T5 yet. I keep waiting for a book. :) I