Vaduvoiu Tiberiu wrote:
>       <jx:if test="${cocoon.parameters.source!=''}">

I believe that a parameter might be null when it's not defined.
Null is definitely != '', so the test "fails to fail"!

If you look at the JEXL syntax (the language you use inside ${...}):

        http://jakarta.apache.org/commons/jexl/reference/syntax.html

There is a nice empty() function that tests if the expression is either:
        - null
        - an empty string
        - an array of length zero
        - a collection of size zero
        - an empty map

So I think this should work:

        <jx:if test="${not empty(cocoon.parameters.source)}">


Tobia

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

Reply via email to