I'm trying to make a page with a form which sends data to another page only when all data inputs are validated.
First, Is there a way to make such as formular without explicitly check every field validation in page flow ?
And, is it possible to display error messages only when data have been sent at least once, and not on first display of the form, without explicit declaration in constraint ?
Yes, yes and yes ;-) Look at the BizDoc example which does all this and is explained in the Tutorial. Note that the BizDoc example uses an XML schema for validation, but you can as well use xforms:bind in the XForms mode.
See also this thread regarding the "first display" tip:
http://sourceforge.net/mailarchive/forum.php?thread_id=5897845&forum_id=42083
Then, when there is a validation constraint on an input field, the corresponding xforms instance data field is auto-populated with an "xxforms:valid" attribute. The problem is that it seems that I cannot access this attribute in page flow in order to ensure validity of data, even if I declare xxforms namespace I get an exception : "Namespace prefix 'xxforms' has not been declared"
This is a known bug that really needs fixing:
http://sourceforge.net/tracker/index.php?func=detail&aid=1008299&group_id=116683&atid=675660
For a workaround, see the BizDoc example.
I hope this helps,
-Erik
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
