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"
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
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
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
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
:[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
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
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
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
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 :
10 matches
Mail list logo