Some useful field validations are demonstrated in the orbeon.war Text Controls example.  The Text Area for example, must have a value of “at least 10 characters.” 

 

In my application, I’d like the user to enter anything he/she likes, as long as a value is supplied.  If I add the constraint “string-length(.) > 0” then my rule will be enforced as expected. 

 

I run into a problem when initially presenting the user with a blank form.  An error message (i.e., the alert) is displayed, indicating the user has done something wrong.  This is not the case, as they haven’t had a chance to provide any data.

 

What approach do you recommend, so that I can show the alert only when the user has committed an error? 

 

(Again, just now beginning to get my arms around this stuff)

 

Thanks!

-BR

Reply via email to