-
1. Re: multiple comparations
kukeltje Feb 26, 2007 10:30 AM (in response to jbmpuser)learn EL, you already gave the answer yourself.... but remember... things might need escaping, it is xml (& could become &)
-
2. Re: multiple comparations
jbmpuser Feb 26, 2007 11:02 AM (in response to jbmpuser)I have read about JSF EL.
For example:
http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2update1/jsp-jsfel/jsf_expression_language_intro.html#operators
Here it show all operators, but when I write
date1 le date2 and date1 >= date3, it doesn't work correctly why??
I don't know than I have to write to work right!! -
3. Re: multiple comparations
estaub Feb 26, 2007 11:10 AM (in response to jbmpuser)jBPM has an internal implementation of EL, with potentially different rules.
Break the expression down into parts until you can tell where it breaks. I'd especially wonder if it's misparsing ">=", you might try "ge" instead.
(Sorry, I don't know much about this or I'd give you more info!)
-Ed Staub -
4. Re: multiple comparations
jbmpuser Feb 26, 2007 11:18 AM (in response to jbmpuser)The operators ">=" work rightly, but the operator "and" don't work correctly.
I have trying this work a lot of times, writing "and" or writing "&&"... but I don't having luck!!
Thank you!! -
5. Re: multiple comparations
dslevine Feb 26, 2007 3:38 PM (in response to jbmpuser)As previously suggested, you need to escape the characters. Try &&
d -
6. Re: multiple comparations
jbmpuser Feb 27, 2007 3:24 AM (in response to jbmpuser)thank you, but && don't work rightly!!!
some idea any more??
Please, I need help!!! -
7. Re: multiple comparations
kukeltje Feb 27, 2007 9:31 AM (in response to jbmpuser)can you write a unittest for this? Ten I'll try to run it here and see if there is an explanation