W3C home > Mailing lists > Public > www-forms@w3.org > January 2010

Re: Conformance Test 10.5.a

From: John Boyer <boyerj@ca.ibm.com>
Date: Tue, 5 Jan 2010 09:40:19 -0800
To: Lars Windauer <windauer@gmail.com>
Cc: Jörn Turner <joern.turner@chiba-project.org>, Nick Van den Bleeken <Nick_Van_den_Bleeken@inventivegroup.com>, www-forms@w3.org
Message-ID: <OF2877D071.1CF264FB-ON882576A2.006073AC-882576A2.00611671@ca.ibm.com>
Hi Lars,

Yes, actions in repeats are repeated and (if using defaults for event 
attrs) attached to the anonymous group element at the root of each repeat 
item.  So, to listen on the repeat, the target ID must be used.
However, if the test is expecting just one event handler to fire, that 
would be wrong.

I think we may already have another test where the action handler is 
outside of the repeat, so it would be a good idea to amend the test to say 
that it expects the three events.  We should also make sure some other 
test covers listening for repeat events with an action handler outside of 
the repeat, though that is the easy case that "should just work".  This 
will likely get discussed on tomorrow's telecon.

Cheers,
John M. Boyer, Ph.D.
STSM, Lotus Forms
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed: 
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw





From:
Lars Windauer <windauer@gmail.com>
To:
www-forms@w3.org
Cc:
Jörn Turner <joern.turner@chiba-project.org>, Nick Van den Bleeken 
<Nick_Van_den_Bleeken@inventivegroup.com>
Date:
01/05/2010 08:13 AM
Subject:
Conformance Test 10.5.a



Hej list, 

I got a question regarding the conformance test 10.5.a. Executing the form 
with Chiba and dispatching the xforms:setindex (e.g. index="-1") action 
results in three(!) xforms-scroll-first messages (because of three repeat 
items) but the tests expects only one(?). This happens because the the 
xforms-scroll-first event listener is placed within the 'lineset' repeat. 
If the listener is placed outside the repeat (as shown in the XForms 1.1 
recommendation 9.3.3. Handling an Event Dispatched to a repeat Element) 
everything works as expected (only one xforms-scroll-first message is 
rendered). My question is now, if action handlers within repeats are 
repeated too, or not?? 

best regards 

lars
Received on Tuesday, 5 January 2010 17:40:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:19 GMT