Re: Problem with test case 9.1.1.a2

Hi Joern -- we discussed this test case recently in the WG
(http://lists.w3.org/Archives/Public/public-forms/2009Jul/att-0003/2009-07-08.html)
 and would like to clarify that the events being handed in this case are
not the selected/deselected events which as you point out are dispatched on
the xf:case elements...rather, as a side-effect of becoming selected or
deselected, the group inside each case will become enabled or disabled.
Thus the test as written is handling those events correctly.

Thanks, Charlie Wiecha



                                                                                                                                
  From:       Joern Turner <joern.turner@googlemail.com>                                                                        
                                                                                                                                
  To:         www-forms@w3.org                                                                                                  
                                                                                                                                
  Date:       06/25/2009 06:38 AM                                                                                               
                                                                                                                                
  Subject:    Problem with test case 9.1.1.a2                                                                                   
                                                                                                                                
  Sent by:    www-forms-request@w3.org                                                                                          
                                                                                                                                





Snippert from test case:
                                     <xforms:case id="in">
                                                 <xforms:group>

<xforms:label>You are now in the In case</xforms:label>

<xforms:message level="modal"
ev:event="xforms-disabled">xforms-disabled</xforms:message>

<xforms:message level="modal"
ev:event="xforms-enabled">xforms-enabled</xforms:message>
                                                 </xforms:group>
                                                 <xforms:trigger
ref="/yourname">

<xforms:label>Show Out Case</xforms:label>
                                                             <xforms:toggle
ev:event="DOMActivate" case="out"/>
                                                 </xforms:trigger>
                                     </xforms:case>

In the above snippet eventhandlers for xforms-disabled and
xforms-enabled are attached to the group but the group is not the
target of
these events but the case element. The messages would never get triggered.

Regards,

Joern

Received on Thursday, 16 July 2009 15:43:48 UTC