[ #315719 ] Test on position returning unexpected result in if
Date: 2010-12-31 03:58
Priority: 5
Submitted By: Alessandro Vernet (avernet)
Assigned To: Erik Bruchez (ebruchez)
Category: XForms NG
State: Open
Summary: Test on position returning unexpected result in if
Detailed description: Run the attached example, when loading, in the logs you get the following messages:
xforms:message - Position: 1, which is 1: true
xforms:message - Position is 1
xforms:message - Position: 2, which is 1: false
xforms:message - Position is 1
The last message shouldn't print, since at that point, position() should be 2.
Date: 2012-04-12 00:43
Sender: ebruchez
Logged In: YES
user_id=5065
Still happening as of 2012-04-11.
Date: 2010-12-31 04:27
Sender: ebruchez
Logged In: YES
user_id=5065
Code here is a bit special because if/while evaluates against
context /
overridden context.
In XFormsActionInterpreter, we use
actionBlockContextStack.getContextItem()
which is stored into the BindingContext, but not position is
available for the
context item in BindingContext.
Might need to add position information. Is there any other way?