xxforms:invalid-binds not always returning value

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms:invalid-binds not always returning value

stacyladnier
I use xxforms:invalid-binds(./westbc) to test for the presence of an error resulting from a bind.

In most cases, this statement works fine. However, in some cases (no pattern can be identified as to when it occurs) it will not return a value even though it should. If I use an alert on the same field, it will show because there is in fact an error.

Is there a bug with invalid-binds? How can I further debug what could be causing this?

Ex code that will not show image, but will show alert:
West Bounding <xf:group ref=".[xxforms:invalid-binds(./westbc)]"></xf:group><xf:input ref="westbc"><xf:alert>Mandatory</xf:alert></xf:input>
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:invalid-binds not always returning value

stacyladnier
Determined the cause of the invalid-binds not displaying was due to the inclusion of the XSD as the schema for the model. As soon as I removed the schema declaration, all binds worked as expected.


stacyladnier wrote
I use xxforms:invalid-binds(./westbc) to test for the presence of an error resulting from a bind.

In most cases, this statement works fine. However, in some cases (no pattern can be identified as to when it occurs) it will not return a value even though it should. If I use an alert on the same field, it will show because there is in fact an error.

Is there a bug with invalid-binds? How can I further debug what could be causing this?

Ex code that will not show image, but will show alert:
West Bounding <xf:group ref=".[xxforms:invalid-binds(./westbc)]"></xf:group><xf:input ref="westbc"><xf:alert>Mandatory</xf:alert></xf:input>