Re: index() in model binding expressions

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