ago H de Paula Figueiredo [mailto:thiag...@gmail.com]
Sent: Thursday, July 10, 2014 19:36
To: Tapestry users
Subject: Re: FW: Customizing the grid to alter its own content
On Thu, 10 Jul 2014 11:55:57 -0300, Davide Vecchi wrote:
> As usual, thanks a lot for the great assistance, and in particul
On Thu, 10 Jul 2014 11:55:57 -0300, Davide Vecchi wrote:
As usual, thanks a lot for the great assistance, and in particular for
pointing me to DOM rewriting.
List nodes = elementToModify.getChildren();
if (nodes.size() == 1)
{
if (nodes.get(0) instanceof Text)
{
Right, in my case that Node is a Text. The following is what I'm doing in
afterRender method; it seems to work just fine although I don't know if that's
the recommended approach in DOM rewriting.
As usual, thanks a lot for the great assistance, and in particular for pointing
me to DOM rewriting
On Thu, 10 Jul 2014 11:09:05 -0300, Davide Vecchi wrote:
If I do
Node node = element.getChildren().get(0);
I do get a org.apache.tapestry5.dom.Node representing the element's
content (its toString() just returns "Hello"), but even this Node object
doesn't seem to me to have metho
I'm trying to use DOM rewriting for the purpose of modifying the content of
some grid cells. I modified GridCell class adding a
void afterRender(MarkupWriter writer)
method, and in it I can retrieve the Element (org.apache.tapestry5.dom.Element)
containing the value I want to modify. Fo
I've done this by adding a mixin to GridCell with a worker. The mixin can
override the behavior of the component in various ways including dom
rewriting.
I would not override the display blocks because there are a lot of them and
a library could install more.
On Mon, Jul 7, 2014 at 9:14 AM, Thia
On Mon, 07 Jul 2014 10:48:48 -0300, Davide Vecchi wrote:
I forgot to answer your question
Another question: do you want to do this for
every column, regardless of the type of its value (String, Date,
boolean,
etc) or not? If yes, then you may use Tapestry DOM rewriting.
The answer is act