This is shown in the xforms-sandbox under: samples/menu.xhtml
Is there a way to associate actions with each of the menu items? If not, what would be the recommended way of constructing a menu that does? Thanks for any help with this! -- Francis -- 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
-- Francis
|
Administrator
|
Francis,
You can react to a xforms-value-changed, just like you would with a drop-down, or other control. For instance, in the example, try adding inside the <xforms:select1> a: <xforms:message ev:event="xforms-value-changed" level="modal" value="concat('New value: ', .)"/> Alex On Wed, May 19, 2010 at 7:33 AM, Francis Parsons <[hidden email]> wrote: > This is shown in the xforms-sandbox under: samples/menu.xhtml > > Is there a way to associate actions with each of the menu items? If not, > what would be the recommended way of constructing a menu that does? > > Thanks for any help with this! > -- > Francis > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks! I know that was a very basic question, but I'm very much a newbie
to Xforms. but, if I want to construct something like: if value1, do Action1 if value2, do Action2,... how do I go about that? Is there some "on value' condition for an action? On Fri, 21 May 2010 09:40:01 -0700, Alessandro Vernet <[hidden email]> wrote: > Francis, > > You can react to a xforms-value-changed, just like you would with a > drop-down, or other control. For instance, in the example, try adding > inside the <xforms:select1> a: > > <xforms:message ev:event="xforms-value-changed" level="modal" > value="concat('New value: ', .)"/> > > Alex > > On Wed, May 19, 2010 at 7:33 AM, Francis Parsons <[hidden email]> > wrote: >> This is shown in the xforms-sandbox under: samples/menu.xhtml >> >> Is there a way to associate actions with each of the menu items? If not, >> what would be the recommended way of constructing a menu that does? >> >> Thanks for any help with this! >> -- >> Francis >> >> >> -- >> You receive this message as a subscriber of the [hidden email] >> 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 >> >> -- Francis -- 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
-- Francis
|
Francis, OF supports the "if" attribute on action elements: http://www.w3.org/TR/2009/REC-xforms-20091020/#action-conditional Only those actions whose if attribute resolves to true will get executed. Cheers Louis (Hank) Ratzesberger Quoting Francis Parsons <[hidden email]>: > Thanks! I know that was a very basic question, but I'm very much a newbie > to Xforms. > > but, if I want to construct something like: > if value1, do Action1 > if value2, do Action2,... > > how do I go about that? Is there some "on value' condition for an action? > > On Fri, 21 May 2010 09:40:01 -0700, Alessandro Vernet <[hidden email]> > wrote: >> Francis, >> >> You can react to a xforms-value-changed, just like you would with a >> drop-down, or other control. For instance, in the example, try adding >> inside the <xforms:select1> a: >> >> <xforms:message ev:event="xforms-value-changed" level="modal" >> value="concat('New value: ', .)"/> >> >> Alex >> >> On Wed, May 19, 2010 at 7:33 AM, Francis Parsons <[hidden email]> >> wrote: >>> This is shown in the xforms-sandbox under: samples/menu.xhtml >>> >>> Is there a way to associate actions with each of the menu items? If not, >>> what would be the recommended way of constructing a menu that does? >>> >>> Thanks for any help with this! >>> -- >>> Francis >>> >>> >>> -- >>> 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 >>> >>> > > -- > Francis > -- Hank Ratzesberger [hidden email] -- 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 |
Thanks, that solved my question! -- Francis
On 5/21/2010 1:12 PM, Louis Ratzesberger wrote: > > Francis, > > OF supports the "if" attribute on action elements: > > http://www.w3.org/TR/2009/REC-xforms-20091020/#action-conditional > > Only those actions whose if attribute resolves to true will > get executed. > > Cheers > > Louis (Hank) Ratzesberger > > Quoting Francis Parsons <[hidden email]>: > >> Thanks! I know that was a very basic question, but I'm very much a >> newbie >> to Xforms. >> >> but, if I want to construct something like: >> if value1, do Action1 >> if value2, do Action2,... >> >> how do I go about that? Is there some "on value' condition for an >> action? >> >> On Fri, 21 May 2010 09:40:01 -0700, Alessandro Vernet >> <[hidden email]> >> wrote: >>> Francis, >>> >>> You can react to a xforms-value-changed, just like you would with a >>> drop-down, or other control. For instance, in the example, try adding >>> inside the <xforms:select1> a: >>> >>> <xforms:message ev:event="xforms-value-changed" level="modal" >>> value="concat('New value: ', .)"/> >>> >>> Alex >>> >>> On Wed, May 19, 2010 at 7:33 AM, Francis Parsons <[hidden email]> >>> wrote: >>>> This is shown in the xforms-sandbox under: samples/menu.xhtml >>>> >>>> Is there a way to associate actions with each of the menu items? If >>>> not, >>>> what would be the recommended way of constructing a menu that does? >>>> >>>> Thanks for any help with this! >>>> -- >>>> Francis >>>> >>>> >>>> -- >>>> 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 >>>> >>>> >> >> -- >> Francis >> > > > -- --- Francis -- 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
-- Francis
|
Free forum by Nabble | Edit this page |