Posted by
Erik Bruchez on
Apr 08, 2011; 2:27am
URL: https://discuss.orbeon.com/Re-xforms-rebuild-tp3435061.html
SD,
As a reminder, what a model rebuild does in Orbeon Forms is
re-evaluate all the xf:bind/@nodeset (or xf:bind/@ref with the latest
proposed XForms syntax) to make sure all binds point to the proper
nodes.
Usually, you don't need the <xforms:rebuild> action.
Ideally, you wouldn't need it at all and the XForms engine would
automatically handle everything on its own.
In practice, sometimes changes to the data model are not reflected
instantly so you need the rebuild action.
The xforms-rebuild event is a cancelable event, although it's probably not wise
to cancel it.
Some invocations of a rebuild do not dispatch the event though. The
following come to mind:
* the first rebuild when the XForms engine starts
* just before a submission
I realize I am not sure why the spec says that!
You can react to this event, e.g.:
<xf:model>
<xf:action ev:event="xforms-rebuild">
...
The event handler is called before the rebuild takes place, not after.
-Erik
On Thu, Apr 7, 2011 at 2:19 PM, SD <
[hidden email]> wrote:
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws