Problem with test case 9.1.1.a2

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with test case 9.1.1.a2

by Joern Turner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Re: Problem with test case 9.1.1.a2

by Charles F Wiecha :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


Inactive hide details for Joern Turner ---06/25/2009 06:38:24 AM---Snippert from test case:    <xforms:case id="in">Joern Turner ---06/25/2009 06:38:24 AM---Snippert from test case: <xforms:case id="in">


From:

Joern Turner <joern.turner@...>

To:

www-forms@...

Date:

06/25/2009 06:38 AM

Subject:

Problem with test case 9.1.1.a2

Sent by:

www-forms-request@...





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