Le lundi 21 janvier 2008 à 14:35 +0100, Martin Braure de Calignon a
écrit :
> Hello :-),
> 
> I have two questions, the first one is more important for me :
> I have a validation xml files, but I want to validate only if user click
> on 'OK' button, and not on 'Cancel'. How to do this ? Do I have to make
> all my fields as expression or fieldexpression and test the value of the
> submit button ?
Well, ok my problem was that my cancel button wasn't defined a action=
inside it, so it goes throw the validator.xml of 'Ok' button.

Sorry in fact the problem is to deal with conversion errors and cancel
button. For example, for a Date field, user input is 'ddddd', which
throw a conversion exception. So 'input' result is throw... Can I ignore
all the value of field of my form on cancel button ? For the moment, I
add a onclick="this.form.reset()" to my submit button. And it works...
Any  other possibility ?

(Sorry for the noise)

-- 
Martin Braure de Calignon



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

Reply via email to