Skip to content

Instantly share code, notes, and snippets.

@hgoetzger
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hgoetzger/1552d867783ddace0c7a to your computer and use it in GitHub Desktop.
Save hgoetzger/1552d867783ddace0c7a to your computer and use it in GitHub Desktop.
fr-select1-button.xhtml
<?xml version="1.0" encoding="UTF-8"?>
<xh:html
xmlns:xh="http://www.w3.org/1999/xhtml"
xmlns:xf="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:fr="http://orbeon.org/oxf/xml/form-runner">
<xh:head>
<xh:title>
FR-SELECT1-BUTTON
</xh:title>
<xf:model id="selectModel">
<xf:instance id="set">
<set>
<selected>2</selected>
<item
value="1"
label="one"/>
<item
value="2"
label="two"/>
<item
value="3"
label="three"/>
</set>
</xf:instance>
</xf:model>
</xh:head>
<xh:body>
<fr:select1-button
id="set-selector"
ref="instance('set')/selected">
<xf:itemset nodeset="instance('set')/item">
<xf:label ref="@label"/>
<xf:value ref="@value"/>
</xf:itemset>
<xf:message
ev:event="xforms-value-changed"
value="'xforms-value-changed'"/>
<xf:message
ev:event="xforms-enabled"
phase="target"
value="'xforms-enabled'"/>
</fr:select1-button>
</xh:body>
</xh:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment