widget + click + action event ?

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

widget + click + action event ?

Wang Yan
Hi, I have a problem, could you please give me a hand ?

This is my code :
<widget:tab id="Management">                                                                            <widget:label ref="/widget/widget2/@content"/>                                                <xforms:trigger>
<xforms:label ref="/widget/widget2/"></xforms:label>                                          
<xforms:toggle ev:event="DOMActivate" case="widget1-visible"/>
</xforms:trigger>                                                                </widget:tab>

I want to use toggle in order to change the case state. Some other part, a switch allows me to display the right case information. However, the problem is, I want to change the case state when I click on one of the widget field name! In summary, how can I engage the action event just my click on the widget without using something like a xforms:trigger !

Thanks a lot !



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: widget + click + action event ?

Erik Bruchez
Administrator
[hidden email] wrote:

> Hi, I have a problem, could you please give me a hand ?
>
> This is my code :
> <widget:tab id="Management">                                                                            <widget:label ref="/widget/widget2/@content"/>                                                <xforms:trigger>
> <xforms:label ref="/widget/widget2/"></xforms:label>                                          
> <xforms:toggle ev:event="DOMActivate" case="widget1-visible"/>
> </xforms:trigger>                                                                </widget:tab>
>
> I want to use toggle in order to change the case state. Some other part, a switch allows me to display the right case information. However, the problem is, I want to change the case state when I click on one of the widget field name! In summary, how can I engage the action event just my click on the widget without using something like a xforms:trigger !
>
> Thanks a lot !
I am not sure what you mean by "the widget field name"? We are talking
about tabs here, right? What exactly will the user be clicking on?

This said, at this point in Orbeon Forms, only activation of triggers
(DOMActivate) or DOMFocusIn / DOMFocusOut on editable controls are
available to XForms actions.

-Erik

--
Orbeon Forms - XForms Everywhere
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws