|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with test case 9.1.1.a2Snippert 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 |
||||||||||
|
|
Re: Problem with test case 9.1.1.a2Hi 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.
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 |
| Free embeddable forum powered by Nabble | Forum Help |