Open hgoetzger opened 10 years ago
I do reproduce this. There is an attempt at dispatching the event, but the target cannot be found:
start handler {name: "xforms-model-construct-done", phase: "target", observer: "xf-6"}
interpreter - start executing {action name: "xf:dispatch"}
xf:dispatch - cannot find target, ignoring action {target id: "#document"}
interpreter - end executing {time (ms): "0", action name: "xf:dispatch"}
end handler {time (ms): "0"}
I suspect that this is because at that time, the tree of control is not yet there, and #document
is considered to be at the root of that tree.
What we might want to do is to:
#document
#document
As described in http://discuss.orbeon.com/Why-is-xforms-model-construct-done-on-load-not-working-td4657888.html:
It looks like that
xforms-model-construct-done
events get not dispatched to#document
, whereasxforms-ready
do.This is an issue in Orbeon Forms 4.4.0.201311042001 CE. It used to work with Orbeon Forms 3.9.0.201105152046-CE .
Thanks a lot
Regards
Heinrich
Example code: