Hi,

I have many pages in my application that use the JXTemplateGenerator to
iterate over collections of Javascript and Java objects passed from a Cocoon
flowscript.

However, after a reasonably short number of page impressions, instead of
iterating over the whole collection, only the first item in the list is
processed.

For example,

${collection}

<jx:forEach var="i" items="collection">
  ${i}
</jx:forEach>

Where the page is called by the flowscript:

var ob = new Object();
ob.collection = someCollection;

cocoon.sendPageAndWait("page.jxt", ob);

To start with, jx:forEach works as expected, and then, for no obvious
reason, it will only process the first element of "collection". I am sure
that the problem is with JXTemplate, because ${collection} just before the
jx:forEach tag will correctly show the whole collection.

I have the same problem with Cocoon 2.1 through 2.1.3. Am running under
JBoss 3.2.1 with embedded Tomcat 4.1.24.

Any ideas?

Thanks,
Pete Bowman.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to