On Mon, 21 Jul 2014 09:38:54 -0300, Davide Vecchi <d...@amc.dk> wrote:

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.

Which riddles? I've given you the answer already. You've asked, your words:

F.ex. I have an Element which is<div>my text content</div>I create a new Element with same name and attributes, and the new element ends up being <div></div>but I don't know how to set the text content in it. Can it be done ?

And here's the answer I gave you.

String newText = ...;
element.removeChildren():
element.text(newText);

--
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