> Have you checked the Element's methods? You would find your answer there.
I think it could have been inferred that I did check the Element's methods. If the answer is there and I missed it I'm sorry. Also, sorry but riddles are not that useful. I know there are some people who just ask questions without bothering to read and try first, but I don't feel like I'm one of those and I don't think I need to be educated about that. I think I explained my doubts very clearly and that would have allowed an answer as clear, whether negative or positive. However I'm going to use Text, and I think it was OK of me to ask about Element. -----Original Message----- From: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Monday, July 21, 2014 14:31 To: Tapestry users Subject: Re: FW: FW: Customizing the grid to alter its own content On Mon, 21 Jul 2014 08:42:46 -0300, Davide Vecchi <d...@amc.dk> wrote: > I cannot use Element.raw(String) because although it returns an > Element, the node it creates is a Raw node, not an Element node; the > Element it returns is just the parent of the new Raw. Have you checked the Element's methods? You would find your answer there. You can use removeChildren() to remove all the element's content then use text(String) to add a Text node inside the element. Yeah, Element.raw(String) isn't recommended at all here. It is basically when you get an HTML snippet from an outside source, such as a rich text editor like CKEditor. -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org