cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: [CForms] xreporter assertion validation problem
Date Tue, 03 Feb 2004 18:54:43 GMT
On Tue, 2004-02-03 at 19:40, Joerg Heinicke wrote:
<snip/>
>      <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.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message