xforms - select1 itemset+insert - supported?
"GSO" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
The following works up to the insert. Is a select1 itemset 'insert'
not supported then as yet or has my code got bugs in it?
Standard routine of initialising a select1 with instance data (using
itemset) with insert/delete procs as well e.g.:
<xf:model id="listitems">
<xf:instance>
<data xmlns="">
<listitem>1</listitem>
<listitem>2</listitem>
<listitem>3</listitem>
</data>
</xf:instance>
</xf:model>
<xf:select1>
<xf:label>Choose</xf:label>
<xf:itemset model="listitems" nodeset="/data/listitem">
<xf:label ref="."/>
<xf:value ref="."/>
</xf:itemset>
</xf:select1>
<xf:trigger>
<xf:label>Insert</xf:label>
<xf:action ev:event="DOMActivate">
<xf:insert model="listitems" nodeset="/data/listitem" at="1"
position="before"/>
<xf:setvalue ref="/data/listitem[1]">0</xf:setvalue>
</xf:action>
</xf:trigger>
Thx (xforms is awsome :)
GSO