|
XPages: am I the only one fighting with validation on every partial update?
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?
Comments (3) | Permanent Link
Links: YouAtNotes Software | Worklow-Engine for Lotus Notes and Web | All-in-one web-based support solution | XPages knowledge collection wiki German links: YouAtNotes Startseite | CRM Software für Lotus Notes | Prozessmanagement / Workflow Software | OpenSource Web-CMS |


