XPages - Server Validation not working

I have an XPage with a Display Errors control on the page. BUT I can’t get it to fire. The validation is on;y appearing in popups on the browser.

I’ve gone into Application Properties and turned Client Side Validation to “Off”. Actually I’ve tried all the options. But I can’t get the nice server validator to kick off.

It works in other applications on this server, just not in this application.

Is there another control somewhere to control this? I thought is was just the Client Validation = Off setting.

thanks!

Subject: Solved

I’m not sure if this is the same problem everyone else was having but the server validation doesn’t work when you have ‘navigation rules’ setup in the properties of the XPage. Remove these and everything works fine.

Subject: Re: Server-Side Validation

Have you disabled client-side validation on all e.g. Edit Box controls on your XPage? Sorry, if I’m stating the obvious, but it’s an easy mistake to make.

Is your DominoDocument datasource set with computeWithForm property as true? I’m not sure what happens if you set it to true and there is a validation error because of a Domino Input Validation formula.

Regards

Paul

Subject: computewithfrom won’t do that

computewithform is only server side validation. It will display the Domino form’s input validation messages into the display errors control.

Also, the disable client side validation on the app. properties should do it. I have seen a database properties get corrupted and not take effect. Not sure of the fix. Someone from IBM can tell us what file this setting is actually set in. There is a text settings file somewhere and a setting where this is set when you change the properties.

Howard

Subject: Db corruption?

Howard,

You might have hit the nail on the head. There might be a corruption here. I had another corruption problem with this app that I posted about earlier. I sent Maureen a copy of the database.

What I ended up doing was to create a new database and I copied all my forms, views, xpages, and resources into the new database. Bit of a pain but it does seem to be working now!

Subject: *yes, I had to do the same for a database I had

Subject: Validation

Hi Paul!

I didn’t know you could disable client side validation on individual edit box controls. But no I haven’t done that. I’m not doing anything with computeWithForm here. I only ever change the application properties.

Thanks!