You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mark H <ma...@markhorgan.com> on 2004/01/13 15:28:19 UTC
Problem with jx template and jexl method parameters - is this a bug?
I'm trying call a method with -1 as one it's parameters in jxtemplate/jexl:
<jx:forEach var="service"
select="${db.getServices('na',1,'Alresford','Wivenhoe',-1)}">
but I get the following error
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
file:/d:/web/websites/JourneyCheck-1.2/xml/test/jx/database.jx:3:91:org.apac
he.commons.jexl.parser.ParseException: Encountered "-" at line 1, column 46.
Was expecting one of: <INTEGER_LITERAL> ... <FLOAT_LITERAL> ... "null" ...
"true" ... "false" ... <IDENTIFIER> ... <STRING_LITERAL> ... "(" ... "empty"
... "size" ... "~" ... "!" ... "not" ...
shouldn't jexl be able to handle -1 as a parameter?
Mark
Re: Problem with jx template and jexl method parameters - is this
a bug?
Posted by Christopher Oliver <re...@verizon.net>.
Yes, it's a bug in Jexl. I've just checked in a new version of Jexl that
fixes the problem.
Regards,
Chris
Mark H wrote:
>I'm trying call a method with -1 as one it's parameters in jxtemplate/jexl:
>
><jx:forEach var="service"
>select="${db.getServices('na',1,'Alresford','Wivenhoe',-1)}">
>
>but I get the following error
>
>org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
>file:/d:/web/websites/JourneyCheck-1.2/xml/test/jx/database.jx:3:91:org.apac
>he.commons.jexl.parser.ParseException: Encountered "-" at line 1, column 46.
>Was expecting one of: <INTEGER_LITERAL> ... <FLOAT_LITERAL> ... "null" ...
>"true" ... "false" ... <IDENTIFIER> ... <STRING_LITERAL> ... "(" ... "empty"
>... "size" ... "~" ... "!" ... "not" ...
>
>shouldn't jexl be able to handle -1 as a parameter?
>
>Mark
>
>
>
>
>