XPages: am I the only one fighting with validation on every partial update?
Julian Buss, May 27th, 2009
Tags:  XPages 
While working on our new cool app, I often come to this situation: validation kicks in when I don't need it.

Simple use case:
You have a XPage with some fields on it, which have validators, and a save and a cancel button.
Then you are doing some partial update, for exampel depending how a user filled a field. And BANG, validations kicks in.

But I DO NOT NEED validation on every partial update! I ONLY need it when the USER clicks on my save button! ONLY AND ONLY THEN.
So at the moment all the cool validation stuff is totally useless since on every page where I work with partial updates (and that is every page I'm working on...) I have that problem.

As far as I know the only workaround is to update only panels with fields having no validation or where the validation requirements are fullfilled... but that is pure theory, in the real world that's no help.
And yes, I know about the "no data validation" checkbox. But that's no help either, since when it's selected other things don't work (like re-computing data in a computed field).

So, I have to implement my own validation framework, don't I?
I am a software developer, consultant and one of the founders of YouAtNotes. You can hire me if you're looking for an expert in
IBM XPages
IBM Domino development
Workflow for IBM Domino
Mobile Apps for Domino or XPages
Just drop a note to sales@youatnotes.com.

Thanks for reading and have a nice time here!

Please note my Apps for iPhone and iPad: NotesBook: takes your Lotus Notes Notebook (Journal) to your iPhone and iPad xpageswiki.com: huge XPages Tips & Tricks collection for iPhone and iPad