Search code examples
xpageslotus-noteslotus-domino

Xpages - blank fields overwritten with value saved in document if validation fails


Im making an Xpages application which needs to have server-side validation.

In my form, when a field is cleared and the form submitted - if there is another field which causes the validation to fail - it will be repopulated with the last successfully saved value in the document.

This is not what should happen. The field should stay blank until the page is either refreshed, or the user enters another value.

Does anyone have any idea about what is causing this to happen?

Thanks, Paul


Solution

  • Thanks for the help. As far as I can tell, it was simply due to the way the default converter included with xpages handles the object and/or string. Writing a java custom converter sorted everything out.