Tests 3.2.4.f and 4.4.18.a

Test 3.2.4.f has an itemset with an invalid bind attribute.  The result is 
a binding exception.  A binding exception handler that shows a message 
appears in the content of the itemset element. 

According to the spec, the itemset template including action handlers is 
made unavailable to the processor.  The only way to get this example to 
work correctly is to have the action handler instantiated within an item 
generated by the itemset, in which case the action handler would also need 
an ev:observer attribute to listen on the itemset.  However, since it is a 
bad bind there is no way to generate an item.  Thus, the only way to 
correct this test is to move the action handler to be a sibling of the 
itemset.  There is no need to put an ev:observer since the event will 
bubble up to the containing selection control.

Test 4.4.18.a tests the xforms-scroll-first and xforms-scroll-last events, 
which are targeted at repeat.  The action handlers are within the repeat 
content.  The action handlers contain ev:observer attributes, so 
technically the test is correct.  However, the test is irritating because 
the action handlers are inside the repeat, so you get multiple occurences 
of handlers firing.  It would be better if the test used the proper format 
shown in the example of Section 9.3.3, in which the xforms-scroll-first 
listener is shown as a sibling of the repeat using ev:target and 
ev:observer.  A more complete sample revision is attached.



John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
Chair, W3C Forms Working Group
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

Received on Friday, 3 July 2009 21:11:59 UTC