cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: [CForms] xreporter assertion validation problem
Date Wed, 04 Feb 2004 23:38:54 GMT
Hello Bruno,

On 03.02.2004 19:54, Bruno Dumon wrote:

>>     <wd:validation>
>>       <wd:assert test="If(persontype = 0, Not(IsNull(lastname)), true)"/>
>>     </wd:validation>
> 
> The expression language doesn't have a predefined true constant, instead
> 'true' here means a variable named true which likely doesn't exist,
> unless you would happen to have a widget with id 'true'.
> 
> Instead, use the True() function.

replacing true with True() my tests do never fail now. Neither the 
change to the Or() based test like Vadim's test nor simply just 
"Not(IsNull(lastname))" return the expected false. Is there a verbose 
mode available anywhere for debugging what's going on?

Joerg

Mime
View raw message