On Fri, 2003-11-14 at 19:57, JD Daniels wrote:
> How can I assert in a woody template

I assume you mean woody definition?

>  whether one of two widgets has a value,
> and not both?

That would be easy enough if the expression language could check if a
value is null, but as far as I remember it can't yet. Wouldn't be
difficult to add but I don't have time right now. We need to revisit
that whole expression-language thing anyhow.

But as a workaround to get you moving forward, you can write some custom
validation code. Are you using flowscript? I've just added an example
today (in CVS) of how to specify a custom validation function. You can
check the value of a widget like this:

form.getWidget("mywidget").getValue() != null ...

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


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

Reply via email to