I wouldn't use validwhen to do this - use intRange or I think theres a minvalue - from memory added in 1.2.8, but I could be wrong.
Niall ----- Original Message ----- From: "fea jabi" <[EMAIL PROTECTED]> Sent: Thursday, March 16, 2006 4:22 PM > <field property="amt" depends="validwhen"> > <msg name="validwhen" key="lbl.notvalidnumber"/> > <var> > <var-name>test</var-name> > <var-value>( ((*this* == "") or (*this* != null)) and > (*this* >= 0) )</var-value> > </var> > </field> > > want the value to be greater than 0, but can be empty or null. Also no chars > are allowed. > > trying using above. but the error gets shown when is a null or empty value. > > how to fix this? > > Thanks. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]