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

Reply via email to