You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Hoskens <jh...@schaubroeck.be> on 2004/01/23 10:05:12 UTC
[More Detailed/Workaround] [Woody] Repeater in TemplateTransformer
I ran some more tests and now I think I've isolated the problem better (still using cvs head cocoon 2.1, last updated 22 januari):
If I use a repeater and in that repeater use some textnodes, they allways end up at the front of the generated block, and this once:
<repeater>
text1
<widget/>
textbetween
<widget/>
textafter
</repeater>
this ends up in:
text1 textbetween textafter
<output from widgets>
If I create an extra element that surrounds the whole inner structure of the repeater, all ends up nice:
<repeater>
<surround>
text1
<widget/>
textbetween
<widget/>
textafter
</surround>
</repeater>
ends up in (correctly):
<!--repeated piece:-->
text1 <widget result> textbetween <widget2result> textafter
<!--end repeated piece-->
So I just use a dummy element to surround everything in my repeater!
Cheers,
Jan
----- Original Message -----
From: Jan Hoskens
To: users@cocoon.apache.org
Sent: Thursday, January 22, 2004 4:30 PM
Subject: [Woody] Repeater in TemplateTransformer
Hi,
I'm using a repeater in my template to display several rows and with each row I want to add some static text. My layout gets messed up when I have the following:
<wt:repeater-widget id="test">
test: <wt:widget id="nr"/>static text in between <wt:widget id="text"/><br/>
</wt:repeater-widget>
For some strange reason, I get the following output:
<snip>
static text in between test: 4 test4
test: 2 test2
</snip>
So every bit of static text that's in between my widgets is only printed once and in front of everything!
I do think it should be possible to do this!
Greetings,
Jan
Re: [More Detailed/Workaround] [Woody] Repeater in TemplateTransformer
Posted by Jan Hoskens <jh...@schaubroeck.be>.
I've updated my cvs head today and your fix works fine!
----- Original Message -----
From: "Tim Larson" <ti...@keow.org>
To: <us...@cocoon.apache.org>
Sent: Friday, January 23, 2004 7:50 PM
Subject: Re: [More Detailed/Workaround] [Woody] Repeater in
TemplateTransformer
> On Fri, Jan 23, 2004 at 10:05:12AM +0100, Jan Hoskens wrote:
> > I ran some more tests and now I think I've isolated the problem better
> > (still using cvs head cocoon 2.1, last updated 22 januari):
> >
> > If I use a repeater and in that repeater use some textnodes, they
allways
> > end up at the front of the generated block, and this once:
>
> Sorry, I had a local fix for this that got lost in the shuffle.
> Please check if this one-line fix I just committed fixes the problem for
you:
> http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=107488337010897&w=2
>
> --Tim Larson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [More Detailed/Workaround] [Woody] Repeater in TemplateTransformer
Posted by Tim Larson <ti...@keow.org>.
On Fri, Jan 23, 2004 at 10:05:12AM +0100, Jan Hoskens wrote:
> I ran some more tests and now I think I've isolated the problem better
> (still using cvs head cocoon 2.1, last updated 22 januari):
>
> If I use a repeater and in that repeater use some textnodes, they allways
> end up at the front of the generated block, and this once:
Sorry, I had a local fix for this that got lost in the shuffle.
Please check if this one-line fix I just committed fixes the problem for you:
http://marc.theaimsgroup.com/?l=xml-cocoon-cvs&m=107488337010897&w=2
--Tim Larson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [More Detailed/Workaround] [Woody] Repeater in
TemplateTransformer
Posted by Bruno Dumon <br...@outerthought.org>.
On Fri, 2004-01-23 at 19:38, Joerg Heinicke wrote:
> On 23.01.2004 19:22, Bruno Dumon wrote:
>
> Bruno is back - welcome! :) Where have you been all the time?
Nowhere, just quite busy with other stuff (and will be for some more
time). Thanks for caring ;-)
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org bruno@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [More Detailed/Workaround] [Woody] Repeater in TemplateTransformer
Posted by Joerg Heinicke <jo...@gmx.de>.
On 23.01.2004 19:22, Bruno Dumon wrote:
Bruno is back - welcome! :) Where have you been all the time?
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [More Detailed/Workaround] [Woody] Repeater in
TemplateTransformer
Posted by Bruno Dumon <br...@outerthought.org>.
Seems like a bug. Could you enter it into bugzilla?
On Fri, 2004-01-23 at 10:05, Jan Hoskens wrote:
> I ran some more tests and now I think I've isolated the problem better
> (still using cvs head cocoon 2.1, last updated 22 januari):
>
> If I use a repeater and in that repeater use some textnodes, they
> allways end up at the front of the generated block, and this once:
>
> <repeater>
> text1
> <widget/>
> textbetween
> <widget/>
> textafter
> </repeater>
>
> this ends up in:
> text1 textbetween textafter
> <output from widgets>
>
> If I create an extra element that surrounds the whole inner structure
> of the repeater, all ends up nice:
> <repeater>
> <surround>
> text1
> <widget/>
> textbetween
> <widget/>
> textafter
> </surround>
> </repeater>
>
> ends up in (correctly):
> <!--repeated piece:-->
> text1 <widget result> textbetween <widget2result> textafter
> <!--end repeated piece-->
>
> So I just use a dummy element to surround everything in my repeater!
>
> Cheers,
>
> Jan
> ----- Original Message -----
> From: Jan Hoskens
> To: users@cocoon.apache.org
> Sent: Thursday, January 22, 2004 4:30 PM
> Subject: [Woody] Repeater in TemplateTransformer
>
> Hi,
>
> I'm using a repeater in my template to display several
> rows and with each row I want to add some static text. My
> layout gets messed up when I have the following:
>
> <wt:repeater-widget id="test">
> test: <wt:widget id="nr"/>static text
> in between <wt:widget id="text"/><br/>
> </wt:repeater-widget>
>
> For some strange reason, I get the following output:
>
> <snip>
> static text in between test: 4 test4
> test: 2 test2
> </snip>
>
> So every bit of static text that's in between my widgets is
> only printed once and in front of everything!
>
> I do think it should be possible to do this!
>
> Greetings,
>
> Jan
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org bruno@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org