Thanks, I had actually solved by using Element.text() that creates a Text node,
which matches your suggestion. I don't have the problem anymore, and thanks for
the assistance, despite me not doing a good job in explaining myself.
Just for clarity, my concern was only that I'm now replacing the
I'm not sure you're getting how XML / HTML is parsed.
A div is ALWAYS an element, a div can have child nodes (eg other elements
or text nodes)
Eg:
div / is a div Element with no child nodes
divFoo/div is a div Element with a Text node as a child.
Elements don't have a text property, but they can
On Tue, 22 Jul 2014 07:52:45 -0300, Davide Vecchi d...@amc.dk wrote:
Just for clarity, my concern was only that I'm now replacing the
original Element node with a new Text node, while I would have preferred
to replace the original Element node with another Element node if it was
possible.
If you consider this case
divstring1bstring2/bstring3/div
The div has 3 children
- string1 - text node
- bstring2/b - 'b' element (with a text node child)
- string3 - text node
On 22 July 2014 13:57, Lance Java lance.j...@googlemail.com wrote:
I'm not sure you're getting how XML / HTML is
Thanks, now I get it.
My mistake was actually that I had misunderstood how XML / HTML is parsed into
the Tapestry DOM. Now it makes a lot of sense.
Although I had already gone for the same solution Thiago mentioned (removing a
child and adding a new Text child), for some reason I was convinced
On Tue, 22 Jul 2014 10:26:10 -0300, Davide Vecchi d...@amc.dk wrote:
Thanks, now I get it.
:)
My mistake was actually that I had misunderstood how XML / HTML is
parsed into the Tapestry DOM. Now it makes a lot of sense.
Not just by Tapestry, but by XML parsers and browsers.
Thanks for
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
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
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
On Mon, 21 Jul 2014 09:50:01 -0300, Thiago H de Paula Figueiredo
thiag...@gmail.com wrote:
F.ex. I have an Element which isdivmy text content/divI create a
new Element with same name and attributes, and the new element ends up
beingdiv/divbut I don't know how to set the text content in it.
10 matches
Mail list logo