> Either Element.raw(...) or Element.text(...)  

Both give me the problems I explained.
In a few words they don't create Element nodes but Raw and Text nodes.

I'm not clear why I see all those Element instances containing text but I 
cannot create one myself (Raw and Text are not Element-s, just Node-s like 
Element itself) or why I cannot change that Element's text without , but I'll 
have to assume I just cannot, period, and I can certainly live with that.

When I have an Element node with a child Element node, I will just turn that 
into an Element node with a child Text node instead; I think it will work just 
fine, I was just trying to clarify my understanding of Element.



-----Original Message-----
From: Lance Java [mailto:lance.j...@googlemail.com] 
Sent: Monday, July 21, 2014 14:14
To: Tapestry users
Subject: RE: Customizing the grid to alter its own content

Either Element.raw(...) or Element.text(...)  On 21 Jul 2014 13:09, "Davide 
Vecchi" <d...@amc.dk> wrote:

> Thanks, that looks like a really good way to use DOM rewriting to 
> alter grids.
>
> However if I'm looking at it correctly I think that in 
> GridCellDecorator.decorate I would still need to be able to set an 
> Element's text, which I don't know whether it's possible.

Reply via email to