I have a form with many inputs, selects, etc, which I want to submit. Some of
these inputs are in some custom components in order to reduce repeating code
and to add some specific behavior visual as some dynamic css passed to the
custom components and functional as some of them are fileuploads
In the example in my last post I'm handling a Node which is a Text: I'm
creating a new Text node under the same parent and I'm setting the content of
the new node.
Now I would like to do the same for a Node which is an Element instead of a
Text, but I can't seem to see a way to set the content
Arg, sorry, it looks like
Element.raw(String)
is what I'm looking for. I had missed it, I'm going to try it right now.
-Original Message-
From: Davide Vecchi
Sent: Monday, July 21, 2014 11:42
To: 'Tapestry users'
Subject: RE: FW: Customizing the grid to alter its own content
In the
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.
My situation is that I have an Element which contains a child Element, and I
want to either replace the
You might be interested in this mixin
https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/mixins/GridDecorator.java
Unfortunately the demo site is down at the moment.
Sample usage:
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.
-Original Message-
From:
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
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
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
On Mon, 21 Jul 2014 05:14:33 -0300, nn kk inv...@abv.bg wrote:
I have a form with many inputs, selects, etc, which I want to submit.
Some of these inputs are in some custom components in order to reduce
repeating code and to add some specific behavior visual as some dynamic
css passed to
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
As you have discovered, Text is a Node and is not an Element.
Elements are
1. Wrapped in and
2. Can have attributes
3. Are containers for child elements
On 21 Jul 2014 13:33, Davide Vecchi d...@amc.dk wrote:
Either Element.raw(...) or Element.text(...)
Both give me the problems I
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.
14 matches
Mail list logo