Re: Java objects in JX templates

2006-01-31 Thread Ralph Goers
Not without a stack trace. Bart Molenkamp wrote: I've had problems with the following expression: jx:when test=${java.lang.Class.forName( \ 'com.bizzdesign.risks.assessment.UploadedEvidence'). \ isAssignableFrom(evidence.getClass())} (the expression is one line). This expression works, but

RE: Java objects in JX templates

2006-01-31 Thread Bart Molenkamp
: Re: Java objects in JX templates Not without a stack trace. Bart Molenkamp wrote: I've had problems with the following expression: jx:when test=${java.lang.Class.forName( \ 'com.bizzdesign.risks.assessment.UploadedEvidence'). \ isAssignableFrom(evidence.getClass

Re: Java objects in JX templates

2006-01-30 Thread Ugo Cei
Il giorno 27/gen/06, alle ore 21:10, Leszek Gawron ha scritto: One more thing: this construct ${java.util.StringTokenizer(items, delims)} will work only when .jx is invoked from flow. This is due to the fact that neither JEXL nor JXPath is able to reference packages/ create java objects.

Re: Java objects in JX templates

2006-01-30 Thread Fabrizio Sitzia
Hello, I upgraded two webapps from Coccon 2.1.7 to 2.1.8 lately... And I found this thread intriguing, so I have added the following to one of my existing JX templates (which is run through a JX generator pipeline, invoked by flowscript): p jx:set var=items value=alpha,beta,gamma/

Re: Java objects in JX templates

2006-01-30 Thread Sylvain Wallez
Ugo Cei wrote: Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at least in 2.1.8 while it apparently worked before. I did a few more tests and

Re: Java objects in JX templates

2006-01-30 Thread Leszek Gawron
Sylvain Wallez wrote: Ugo Cei wrote: Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at least in 2.1.8 while it apparently worked before. I did a

Java objects in JX templates

2006-01-27 Thread Ugo Cei
Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at least in 2.1.8 while it apparently worked before. I did a few more tests and discovered that

Re: Java objects in JX templates

2006-01-27 Thread Leszek Gawron
Ugo Cei wrote: Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at least in 2.1.8 while it apparently worked before. I did a few more tests and

Re: Java objects in JX templates

2006-01-27 Thread Ugo Cei
Il giorno 27/gen/06, alle ore 15:54, Leszek Gawron ha scritto: Ugo Cei wrote: Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at least in 2.1.8

Re: Java objects in JX templates

2006-01-27 Thread Leszek Gawron
Jens Maukisch wrote: Hi, [1] http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html Didn't you want to do: jx:forEach var=varName items=${java.util.StringTokenizer(items, delims)} /jx:forEach Have you tried the sample mentioned in the Docs? It does not work for me either and your

Re: Java objects in JX templates

2006-01-27 Thread Leszek Gawron
Ugo Cei wrote: Il giorno 27/gen/06, alle ore 15:54, Leszek Gawron ha scritto: Ugo Cei wrote: Our docs [1] state that something like: jx:forEach var=${var} items=${java.util.StringTokenizer(items, delims)} /jx:forEach should work. However, that doesn't seem to be the case, at