select1 won't fire action

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

select1 won't fire action

Jim Logan-3
I cannot get the following to take any action when I make a selection:
<xforms:select1
    ref=[hidden email]
    appearance="xxforms:tree"
    id="select1-tree"
    incremental="true">
    <xforms:itemset
        nodeset="instance('containers-instance')//rdfs:label/..">
        <xforms:label ref="rdfs:label" />
        <xforms:value ref="@rdf:about" />
    </xforms:itemset>
    <xforms:action ev:event="xforms-value-changed">
        <xxforms:show dialog="not-implemented"/>
        <xforms:send
            submission="list-submission" />
    </xforms:action>
</xforms:select1>

I think it should pop up my test dialog and do a submission, but it does neither. What am I doing wrong?

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: select1 won't fire action

Jim Logan-3
Jim Logan wrote:
I cannot get the following to take any action when I make a selection:
<xforms:select1
    ref=[hidden email]
    appearance="xxforms:tree"
    id="select1-tree"
    incremental="true">
    <xforms:itemset
        nodeset="instance('containers-instance')//rdfs:label/..">
        <xforms:label ref="rdfs:label" />
        <xforms:value ref="@rdf:about" />
    </xforms:itemset>
    <xforms:action ev:event="xforms-value-changed">
        <xxforms:show dialog="not-implemented"/>
        <xforms:send
            submission="list-submission" />
    </xforms:action>
</xforms:select1>

I think it should pop up my test dialog and do a submission, but it does neither. What am I doing wrong?
I just had a thought. Is setting the value of "[hidden email]" disabling the action before it gets the value change event?

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: select1 won't fire action

Jim Logan-3
Jim Logan wrote:
Jim Logan wrote:
I cannot get the following to take any action when I make a selection:
<xforms:select1
    ref=[hidden email]
    appearance="xxforms:tree"
    id="select1-tree"
    incremental="true">
    <xforms:itemset
        nodeset="instance('containers-instance')//rdfs:label/..">
        <xforms:label ref="rdfs:label" />
        <xforms:value ref="@rdf:about" />
    </xforms:itemset>
    <xforms:action ev:event="xforms-value-changed">
        <xxforms:show dialog="not-implemented"/>
        <xforms:send
            submission="list-submission" />
    </xforms:action>
</xforms:select1>

I think it should pop up my test dialog and do a submission, but it does neither. What am I doing wrong?
I just had a thought. Is setting the value of "[hidden email]" disabling the action before it gets the value change event?
All,

I got this working with the event "xforms-select", but I don't understand why it didn't work with "xforms-value-changed".

I'm puzzled by the what the spec says:
incremental

When true, this form control will generate additional xforms-value-changed events. The default for this form control is true.

This implies I should see at least one xforms-value-changed event. BUT... the spec also says:
When a selection is interactively changed, and the form control has the incremental="true" setting (which is the default for the select or select1 elements), the event sequence is described at 4.6.6 Sequence: Selection Without Value Change, which may be followed immediately by the sequence described at 4.6.7 Sequence: Value Change.
This implies that I might not see an "xforms-value-changed" event.

Can anyone explain this to me please?

Thanks,
-Jim



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws