Hi,
I want to use xxforms:menu, the segment like that:
<xforms:instance id="resultdata">
<results xmlns=""> <result/> </results> </xforms:instance> <xforms:instance id="menudata"> <menuitems xmlns=""> <menuitem> <label>Item A</label> <value>Value A</value> </menuitem> <menuitem> <label>Item B</label> <value>Value B</value> </menuitem> <menuitem> <label>Item C</label> <value>Value C</value> </menuitem> </xforms:instance>
<xforms:select1 ref="instance('resultdata')/result" appearance="xxforms:menu"> then I have problem: I want to doing deffrence action when I select deffrence menu item, for example, do action A when selected 'Item A', do actin B when clicked 'Item B', do action C when selected 'Item C'. same as: attach defference action to menu item. How can do this?
你 邮 箱 里 居 然 有 积 分 , 这 你 知 道 吗 ? 邮 箱 积 分 居 然 能 换 20 元 钱 , 这 你 也 知 道 吗 ? 点 此 兑 换 20 元 >> -- 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 |
Administrator
|
Hi,
When you select something in the menu through the UI, this will change the value of instance('resultdata')/result, as this is the node your menu is bound to. So if you want to react to that change, you can add inside the <xforms:select1>: <xforms:action ev:event="xforms-value-changed"> ... The actions you want to run here ... </xforms:action> Alex On 11/13/06, hechengrong <[hidden email]> wrote: > Hi, > I want to use xxforms:menu, the segment like that: > > <xforms:instance id="resultdata"> > <results xmlns=""> > <result/> > </results> > </xforms:instance> > <xforms:instance id="menudata"> > <menuitems xmlns=""> > <menuitem> > <label>Item A</label> > <value>Value A</value> > </menuitem> > <menuitem> > <label>Item B</label> > <value>Value B</value> > </menuitem> > <menuitem> > <label>Item C</label> > <value>Value C</value> > </menuitem> > </xforms:instance> > > > > > <xforms:select1 ref="instance('resultdata')/result" > appearance="xxforms:menu"> > <xforms:itemset > nodeset="instance('menudata')//menuitem"> > <xforms:label ref="label"/> > <xforms:value ref="value"/> > </xforms:itemset> > </xforms:select1> > > then I have problem: I want to doing deffrence action when I select > deffrence menu item, for example, do action A when selected 'Item A', do > actin B when clicked 'Item B', do action C when selected 'Item C'. same as: > attach defference action to menu item. > > How can do this? > > > > > > > > > 你 邮 箱 里 居 然 有 积 分 , 这 你 知 道 吗 ? > 邮 箱 积 分 居 然 能 换 20 元 钱 , 这 你 也 知 道 吗 ? 点 此 兑 换 20 元 >> > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |