Advanced - Powered by Google


   
Log In
New Account
  
 
Home
My Page
Project Tree
Project Openings
Orbeon Forms
          
 
 
Summary
Tracker
Lists
Docs
News
CVS
Files
SVN
                
 

Tracker: Bugs

Submit New | Browse | Admin | ExportToXml

[ #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.

Add A Comment:

Please login

Followup

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

Attached Files:

Name Description Download
20101230-iterate-if.xhtml Download

Changes:

Field Old Value Date By
File Added2236: 20101230-iterate-if.xhtml2010-12-31 03:58avernet

Copyright © 1999-2008, OW2 Consortium | contact | webmaster.