Re: Comma-delimited looper
Well, I learnt that trick from looking at your source code. ;) -Filip Howard Lewis Ship skrev: Clever! On Fri, Mar 7, 2008 at 7:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: Hi Bill, Try this: , ${currThing.name} On the first iteration of the loop index will be 0 which evaluates to false. Any other iteration will output the comma. -Filip Bill Holloway skrev: I need to comma-delimit components in a loop that will be . I.e., > > > context="currThing.id">${currThing.name}, > > > The above, of course, produces a trailing comma. > > I know that some CSS tricks can turn a into a comma-delimited > list, but the only CSS solutions I've seen use things like ul > li::before and other CSS things that don't play well with @#$%#$@ > internet exploiter. > > If the _source or even _iterator instance variables of the Loop class > were protected rather than private, I could just subclass Loop and > override the afterRenderBody, check _iterator.hasNext and emit ", " if > there is a next. > > Any thoughts? > > Bill > > - > 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]
Re: Comma-delimited looper
Clever! On Fri, Mar 7, 2008 at 7:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Bill, > > Try this: > > > , > >context="currThing.id">${currThing.name} > > > On the first iteration of the loop index will be 0 which evaluates to > false. Any other iteration will output the comma. > > -Filip > > Bill Holloway skrev: > > > > I need to comma-delimit components in a loop that will be . > > I.e., > > > > > > > context="currThing.id">${currThing.name}, > > > > > > The above, of course, produces a trailing comma. > > > > I know that some CSS tricks can turn a into a comma-delimited > > list, but the only CSS solutions I've seen use things like ul > > li::before and other CSS things that don't play well with @#$%#$@ > > internet exploiter. > > > > If the _source or even _iterator instance variables of the Loop class > > were protected rather than private, I could just subclass Loop and > > override the afterRenderBody, check _iterator.hasNext and emit ", " if > > there is a next. > > > > Any thoughts? > > > > Bill > > > > - > > 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] > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comma-delimited looper
Right, I can do , bill On Fri, Mar 7, 2008 at 7:38 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > And? Whatever content you put after the will still be rendered - > and properly comma-delimited. :) > > -Filip > > Bill Holloway skrev: > > > > Well, sometimes this will be page links, sometimes literal text, > > sometimes other components. The loop body might contain anything. > > > > Bill > > > > On Fri, Mar 7, 2008 at 8:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > >> Hi Bill, > >> > >> Try this: > >> > >> > >> , > >> > >>>> context="currThing.id">${currThing.name} > >> > >> > >> On the first iteration of the loop index will be 0 which evaluates to > >> false. Any other iteration will output the comma. > >> > >> -Filip > >> > >> Bill Holloway skrev: > >> > >> > >>> I need to comma-delimit components in a loop that will be . > I.e., > >> > > >> > > >> > >> > context="currThing.id">${currThing.name}, > >> > > >> > > >> > The above, of course, produces a trailing comma. > >> > > >> > I know that some CSS tricks can turn a into a comma-delimited > >> > list, but the only CSS solutions I've seen use things like ul > >> > li::before and other CSS things that don't play well with @#$%#$@ > >> > internet exploiter. > >> > > >> > If the _source or even _iterator instance variables of the Loop class > >> > were protected rather than private, I could just subclass Loop and > >> > override the afterRenderBody, check _iterator.hasNext and emit ", " if > >> > there is a next. > >> > > >> > Any thoughts? > >> > > >> > Bill > >> > > >> > - > >> > 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] > > -- "The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness." -- John Kenneth Galbraith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comma-delimited looper
And? Whatever content you put after the will still be rendered - and properly comma-delimited. :) -Filip Bill Holloway skrev: Well, sometimes this will be page links, sometimes literal text, sometimes other components. The loop body might contain anything. Bill On Fri, Mar 7, 2008 at 8:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: Hi Bill, Try this: , ${currThing.name} On the first iteration of the loop index will be 0 which evaluates to false. Any other iteration will output the comma. -Filip Bill Holloway skrev: I need to comma-delimit components in a loop that will be . I.e., > > > context="currThing.id">${currThing.name}, > > > The above, of course, produces a trailing comma. > > I know that some CSS tricks can turn a into a comma-delimited > list, but the only CSS solutions I've seen use things like ul > li::before and other CSS things that don't play well with @#$%#$@ > internet exploiter. > > If the _source or even _iterator instance variables of the Loop class > were protected rather than private, I could just subclass Loop and > override the afterRenderBody, check _iterator.hasNext and emit ", " if > there is a next. > > Any thoughts? > > Bill > > - > 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]
Re: Comma-delimited looper
Well, sometimes this will be page links, sometimes literal text, sometimes other components. The loop body might contain anything. Bill On Fri, Mar 7, 2008 at 8:24 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Bill, > > Try this: > > > , > >context="currThing.id">${currThing.name} > > > On the first iteration of the loop index will be 0 which evaluates to > false. Any other iteration will output the comma. > > -Filip > > Bill Holloway skrev: > > > > I need to comma-delimit components in a loop that will be . > > I.e., > > > > > > > context="currThing.id">${currThing.name}, > > > > > > The above, of course, produces a trailing comma. > > > > I know that some CSS tricks can turn a into a comma-delimited > > list, but the only CSS solutions I've seen use things like ul > > li::before and other CSS things that don't play well with @#$%#$@ > > internet exploiter. > > > > If the _source or even _iterator instance variables of the Loop class > > were protected rather than private, I could just subclass Loop and > > override the afterRenderBody, check _iterator.hasNext and emit ", " if > > there is a next. > > > > Any thoughts? > > > > Bill > > > > - > > 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] > > -- "The modern conservative is engaged in one of man's oldest exercises in moral philosophy; that is, the search for a superior moral justification for selfishness." -- John Kenneth Galbraith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Comma-delimited looper
Hi Bill, Try this: , context="currThing.id">${currThing.name} On the first iteration of the loop index will be 0 which evaluates to false. Any other iteration will output the comma. -Filip Bill Holloway skrev: I need to comma-delimit components in a loop that will be . I.e., ${currThing.name}, The above, of course, produces a trailing comma. I know that some CSS tricks can turn a into a comma-delimited list, but the only CSS solutions I've seen use things like ul li::before and other CSS things that don't play well with @#$%#$@ internet exploiter. If the _source or even _iterator instance variables of the Loop class were protected rather than private, I could just subclass Loop and override the afterRenderBody, check _iterator.hasNext and emit ", " if there is a next. Any thoughts? Bill - 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]
Comma-delimited looper
I need to comma-delimit components in a loop that will be . I.e., ${currThing.name}, The above, of course, produces a trailing comma. I know that some CSS tricks can turn a into a comma-delimited list, but the only CSS solutions I've seen use things like ul li::before and other CSS things that don't play well with @#$%#$@ internet exploiter. If the _source or even _iterator instance variables of the Loop class were protected rather than private, I could just subclass Loop and override the afterRenderBody, check _iterator.hasNext and emit ", " if there is a next. Any thoughts? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]