Hi,

Yesterday I wrote:

> Setting the xxforms:valid attribute for a form element in <result>
> yourself, in order to get a validation error reported in the
> standard way, works fine *as long as* you do not define an
> xforms:bind condition for the same node.  In that case, the result
> of the validation overrides my own value.
> 
> I had hoped that the validation only would mark the field invalid
> when its condition is 'false', not that it overrides my 'false'
> setting when the condition is 'true'.

In the meantime I implemented the following workaround: I mark the
application-level invalid (instance) fields with an own "applvalid"
attribute and add the condition "not(@applvalid = 'false')" to
the bind constraint (covering missing "applvalid" attributes too),
so that the other validation/error stuff picks up this attribute.

Don't know if there is a better way, but this seems to work for me.

Cheers,

-- 
--    Jos Vos <[EMAIL PROTECTED]>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
orbeon-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to