cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject RE: Woody Transformer: absolute addressing of widgets
Date Fri, 21 Nov 2003 20:32:44 GMT
On Fri, 2003-11-21 at 19:38, Danny Bols wrote:
> > -----Original Message-----
> > From: Bruno Dumon []
> > Sent: vrijdag 21 november 2003 16:47
> > To:
> > Subject: Re: Woody Transformer: absolute addressing of widgets
> >
> >
> > On Wed, 2003-11-19 at 08:36, Danny Bols wrote:
> > > Hello,
> > >
> > > is it possible in the Woody transformer to use absolute addressing for
> > > widgets in a repeater like:
> > >     <wt:widget id=""/>
> > > or for nested situations:
> > >     <wt:widget id="repeater1.row1.repeater2.row2.widgetname"/>
> >
> > This won't be very helpful, but: no.
> It is very helpfull in the case you want

The "not very helpful" remark was about my answer ;-)

>  to use a multiple templates based
> on the same form instance. For testing purposes we made a little change to
> the getWidget method in the woody transformer (see attachement). It allows
> us to make a template which zooms in on one particular row of a repeater
> based on the same form instance.

I think it is useful (though also somewhat dependent on the subject of
our other thread). The only thing left that might need some discussion
is the precise syntax we'll use for this. I'm mostly wondering if it
will also be useful to go back in the widget tree, i.e. something like
../.. in xpath notation. Here I also see some relationship with how we
would address widgets in the expression language, which we'll likely
switch to JXPath, so using slashes instead of dots to separate widgets
might be meaningful.

PS: in the future, it would be helpful if you could post a diff instead
of a complete file, especially if the change is small. Don't know if
you're familiar with CVS or other version control systems, but the small
learning curve is definitely worth it.

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message