So I was missing an easy solution! Thanks for this Filip, although I really should have figured this out myself. I take it the index gets coerced into a Boolean for the test, I'd forgotten all about that useful feature of coercion. It gets worse, it's documented at the bottom of the if component page. D'oh.
> -----Original Message----- > From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] > Sent: 23 September 2008 21:19 > To: Tapestry users > Subject: Re: Overriding a render phase method > > Well... You could try this: > > <t:loop t:source="source" t:value="value" t:index="var:index"> > <t:if t:test="var:index">; </t:if> > ${value} > </t:loop> > > That's what I use. > > -Filip > > On 2008-09-23 21:58, Blower, Andy wrote: > > Thanks Filip, I'll try and raise an enhancement request when I get a > spare 10 mins. > > > > I've just been trying to do this using composition. I keep getting > errors with render variables, and I really don't have time to track > this down. It's pretty silly that I've spent probably two hours trying > to use the T5 loop component to display a list of values separated by > semicolons without having one at the end. This shouldn't be hard, or > require a custom component. Maybe I'm missing some easy solution to > this problem or something? > > > >> -----Original Message----- > >> From: Filip S. Adamsen [mailto:[EMAIL PROTECTED] > >> Sent: 23 September 2008 20:34 > >> To: Tapestry users > >> Subject: Re: Overriding a render phase method > >> > >> Hi Andy, > >> > >> I totally agree on first and last parameters. As it is now, I'm > using > >> if-else components pretty much everywhere. =/ > >> > >> You'd have my vote on a JIRA issue. > >> > >> -Filip > >> > >> On 2008-09-23 21:12, Blower, Andy wrote: > >>> <snip/> > >>> To be honest I think the standard loop component would benefit from > >> first & last Boolean parameters that are set to true for first and > last > >> iterations repectively. Anyone else agree, or is this an unusual > need? > >>> Thanks, > >>> > >>> Andy. > >> -------------------------------------------------------------------- > - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]