Dear Orbeon authors,
I'm afraid I've spotted a bug, namely it seems that Orbeon >= 3.7.1 calculates the visibility of controls which use the bind only during form loading and does not recalculate it later.
I've prepared a reproducible example, it consists of a single drop-down choosing a value and of groups that except one of the values.
- the first group is made using @ref="my/path" and works fine, its content (dis)appears as it should,
- the second group is made using a bind which has @nodeset="my/path" (the same as in @ref of the previous group), its contents appear (and stay "forever") only if the "correct" value is present during the form loading
The example consists of two files:
http://gamma.mini.pw.edu.pl/~arciuchm/ezs.xml (with "incorrect" value in the instance, second group never appears)
http://gamma.mini.pw.edu.pl/~arciuchm/ezs2.xml (with "correct" value in the instance, second group always appears, even if it shouldn't)
You can check it out in Sandbox:
http://www.orbeon.com/ops/xforms-sandbox/run?url=http://gamma.mini.pw.edu.pl/~arciuchm/ezs.xmlhttp://www.orbeon.com/ops/xforms-sandbox/run?url=http://gamma.mini.pw.edu.pl/~arciuchm/ezs2.xmlIs this an Orbeon bug or I simply don't understand something?
Thanks in advance, best regards, Maciej