Login  Register

Re: Re: xforms:rebuild

Posted by SD on Apr 08, 2011; 3:03pm
URL: https://discuss.orbeon.com/Re-xforms-rebuild-tp3435061p3436594.html

Thanks Erik.

On Thu, Apr 7, 2011 at 8:27 PM, Erik Bruchez <[hidden email]> wrote:
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:
> Hi All,
>
> I would like to know if xforms:rebuild is mandatory? Is there anyway to stop
> this from firing automatically? Is there any way to set values when
> xforms:rebuild is fired?
>
> regards
> --SD
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xforms-rebuild-tp3434597p3434597.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
>
>


--
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




--
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