counter in jx:foreach

2007-10-08 Thread Michel Erard
Hello, I'm implemented this loop with jx: http://apache.org/cocoon/templates/jx/1.0";> ${item} : ${counter} function home() { var list = new ArrayList(); list.add("test 1"); list.add("test 2"

Sorting elements before jx:forEach ?

2004-12-09 Thread Laurent Perez
Hello Is it possible to directly sort elements (say, by some random bean property) within the JXTemplate itself before looping over an ArrayList received from a flowscript with , or is the best practice to sort them before they reach the JXTemplate ? And if so, how would you sort them within a flo

Re: counter in jx:foreach

2007-10-08 Thread Felix Knecht
Ciao Michel Something like should do the job to get the actual index: ${item} : ${rowStat.index} Where rowStat contains e.g. the actual index of the iteration. See also http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html Felix > Hello, > > I'm implemented this loop with jx: > > h

Re: counter in jx:foreach

2007-10-08 Thread Leszek Gawron
Michel Erard wrote: Hello, I'm implemented this loop with jx: http://apache.org/cocoon/templates/jx/1.0";> > ${item} : ${counter} > this creates a new local variable which shadows the parent one and not really m

Re: counter in jx:foreach

2007-10-08 Thread Michel Erard
Thank you Felix, I didn't know this 'varStatus'. Now it's working correctly. Cheers, Mike -- Original Message -- From: Felix Knecht <[EMAIL PROTECTED]> Reply-To: users@cocoon.apache.org Date: Mon, 08 Oct 2007 15:09:06 +0200 >Ciao Michel > > >Somethin

RE: Sorting elements before jx:forEach ?

2004-12-12 Thread Adam Ratcliffe
:[EMAIL PROTECTED] Sent: Friday, 10 December 2004 9:02 a.m. To: [EMAIL PROTECTED] Subject: Sorting elements before jx:forEach ? Hello Is it possible to directly sort elements (say, by some random bean property) within the JXTemplate itself before looping over an ArrayList received from a flowscript

Performance problem when using jx:forEach

2010-03-22 Thread MarcelH
template.xml with jx:foreach (which is working, but extremly slow): (columnId is known) I noticed, that a when I call the widget names directly e.g and so on and do NOT use the jx:foreach, the performance is much better. Does anybody has tips for me, how I can increase

jx:forEach returns JXTExpression where com.xxxx.Group is Expected

2006-10-31 Thread Robby Pelssers, AGP
var="subGroupIterator" value="${planboard.analyzer.rootGroup.subGroupIterator(planboard.projectGroupRule)}"/> var="projectGroup" items="{subGroupIterator}">   value="${java.lang.System.err.println(projectGroup)}"/>   A print of SubGroupIterator results in [EMAIL PROTECTED] A print of proj

Re: jx:forEach returns JXTExpression where com.xxxx.Group is Expected

2006-10-31 Thread Jason Johnston
Robby Pelssers, AGP wrote: value="${planboard.analyzer.rootGroup.subGroupIterator(planboard.projectGroupRule)}"/> A print of SubGroupIterator results in [EMAIL PROTECTED] A print of projectGroup results in org.apache.cocoon.generation.JXTemplateGenerator$JXTExpression@ Anybod

How to get rid of unwanted white-space when using jx:forEach loop

2006-10-10 Thread Robby Pelssers, AGP
Hi all, I'm building up a tree (Eclipse Style: see below) and to visualize e.g. lines 6 and 8, my macro does something like (16px * 16px) Line1 : root Line2 : 00| Line3 : 00--- folder 1 Line4 : 00| Line5 :