- From: Aaron Reed <aaronr@us.ibm.com>
- Date: Fri, 19 Oct 2007 15:52:53 -0500
- To: www-forms@w3.org
Hi Rob, You can certainly bind two selects/select1s to the same node, but when you select items in a select/select1, it will replace the values underneath it. The only way you could mix and mingle them are if both selects had the same items and you use ctrl+<click> when selecting items (assuming your process uses a html:select type of control) but then there isn't much reason to have both. You could always try to manage it yourself with binding the two selects to different nodes and then handling the xforms-select and xforms-deselect events and inserting/deleting the nodes under the 'real' target node yourself. --Aaron Robert Walpole wrote: > Hi, > > I am seeking some clarification about how the XForms copy element > (http://www.w3.org/TR/2007/WD-xforms11-20070222/#ui-adv-copy) should > work. > > My question is whether it should be possible to use xforms:copy on > different xforms:select controls to copy different element nodes into > the same target node? > > For example, say I want to have 2 select controls that use use > xforms:copy to populate the data node in the following... > > <test> > <data/> > </test> > > In this case I would bind both of my select controls to the data nodeset > and by selecting two values from both controls I would hope to get > something like the following result... > > <test> > <data> > <abc>123</abc> > <abc>456</abc> > <def>321</def> > <def>654</def> > </data> > </test> > > Is this allowable? It may be that I cannot bind two different controls > to the same target node. Any clarification of this would be much > appreciated. > > Many Thanks > Rob Walpole > Devon Portal Developer > Email robert.walpole@devon.gov.uk > Web http://www.devonline.gov.uk > > > >
Received on Friday, 19 October 2007 20:57:15 UTC