XPages multiline edit box required field messages

Hi,

I’m currently in the process of designing a Xpage submission page for our customers and I’ve come across a bit of an odd problem (not a show stopper, but kind of annoying to say the least as it’s a bit of an eyesore against the rest of the XPage).

First some quick background. The ‘disableClientSideValidation’ flag on all the fields have been set to ‘true’ so I can get error boxes with some nice CSS appear to the right of the fields, instead of dialog boxes appearing. I’m using the ‘Display error’ core control to display the error messages and these are placed next to the fields and then linked with the relevant field. The fields are in a custom control which in turn is then loaded into an Xpage, this is because the custom control (I’ll just say CC from now on) is re-used in places.

On the CC have some standard ‘Edit Boxes’ that have been flagged as required fields (I have done this by simply checking the relevant box under ‘validation’ on the field properties) and then it has a custom error message saying “This is a required field”. When previewed in the browser everything works fine and there is no problem.

Now here’s the problem:

If I do the exact same thing, except this time it’s a multi-line edit box, the user cannot submit until the field has information entered as expected. The problem here is that it will not give the custom error message, instead it will say “Validation Error: Value is required.”, it just ignores the custom message. This happens in all browsers.

Anyone know how I can get a mult-line edit box to display a custom ‘required field’ message?

Subject: Same Problem

Did you find a solution? Deleting and creating a new field did not work.

Thank you

Marco

Subject: Afraid not

I 've tried some other ideas, like having a validateconstraint using regex to get the length. I’ve also just tried a plain validatelength approach but both do not work as required field validation.

Why you ask?

Because the validate constraints (other than required validation) don’t seem to fire unless there is at least 1 character in the field. Back the drawing board I guess unless someone can enlighten us.