W3C home > Mailing lists > Public > public-xformsusers@w3.org > December 2016

Re: index() in model binding expressions

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 13 Dec 2016 21:49:54 -0800
Message-ID: <CAAc0PEUQCRKWtfOiBxi6cWYL=_dEv_n9uW5Q1sraB9yOfM-G2g@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: XForms <public-xformsusers@w3.org>
Makes sense.

-Erik

On Mon, Dec 12, 2016 at 4:38 AM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> 6.5.1 Model Binding Expressions and Computed Expressions
> https://www.w3.org/community/xformsusers/wiki/XForms_2.0#Mod
> el_Binding_Expressions_and_Computed_Expressions
>
> "Note:
>
> If the index() function is being invoked from a model binding expression
> or computed expression, it will be necessary to invoke rebuild manually. If
> the repeat index change occurs due to an implicit behavior such as a change
> to the focused control, then the rebuild (along with recalculate,
> revalidate and refresh) can be invoked from a handler for DOMFocusIn
> attached to the repeat or each repeat object."
>
> Presumably it is worth us pointing out here that using indexref instead of
> index() solves this problem.
>
> Steven
>
>
Received on Wednesday, 14 December 2016 05:50:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:47 UTC