W3C home > Mailing lists > Public > www-forms@w3.org > August 2003

using select1 with repeat

From: <Amitha_Nadig@in.firstapex.com>
Date: Mon, 4 Aug 2003 14:52:08 +0530
To: "www-forms@w3.org" <www-forms@w3.org>
Message-ID: <OF31CF1692.9E5B1536-ON65256D78.002E18F2-65256D1D.00337828@in.firstapex.com>

Hi ,

How to use 'select1' control with the 'repeat'  tag?
The values from the XForms instance data for the select1 field is not
getting populated when the page is executed, but the same is working
without repeat tag(i,e for single record in xml file ) and also for select
with repeat tag.

The xforms file looks like :

<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
                  <xforms:bind nodeset="test" required="true" type="test"


      <xforms:repeat id="repid" nodeset="test" startIndex="1" number="10">

            <xforms:input ref="@name">
            <xforms:select1 ref="operation" id="repid">
                  <xforms:choices >
                        <xforms:item >
            <xforms:input ref="@id">

Intance data is :

<test name="String" id="11111" >
<test name="int" id="222222" >

In the output, only 'operation' field of the last 'test' element ( i.e the
value = 'sum' ) is getting selected, and it seems like all the select1
fields in the page are in a group, letting only the last value for the
'operation' getting selected in the page. Is there any problem with the
code/ any other attribute to be added to the select1 tag?



Received on Monday, 4 August 2003 05:33:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:08 UTC