On Wed, 28 Mar 2012 14:36:06 -0300, Tapbeg <egn...@hotmail.com> wrote:

Hi,

Hi!

So, I want to do is something like a "factory widget". I think it's possible to solve this by using writeRaw, where string would be the piece of correct code of that factory. I have been searching for an example of doing this
with writeRaw, but I didn't find anything.

You could use the OutputRaw component, which uses MarkupWriter.writeRaw() internally. But I suggest you something completely different: take a look at how the BeanModel-based components work (Grid, BeanEditForm, BeanModel, BeanDisplay) and also specifically PropertyEditor and Display. They do something very, very similar to what you want to implement, but without resorting to raw HTML, using blocks and components instead.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to