W3C home > Mailing lists > Public > www-forms@w3.org > December 2002

retaining previous settings in a select1

From: Roman Huditsch <roman.huditsch@hico.com>
Date: Mon, 16 Dec 2002 09:34:53 +0100
Message-ID: <0C79A363CB0321418927D0CB1AD0403C095ABE@hicoetsrv000006.hico.local>
To: <www-forms@w3.org>

Hello all,

Over the weekend I tried to work again on my XForms-based editor and doing this I came up with some more questions. 
I have a select1 within a repeat element where I can choose a name from names already contained within my instance data. 
So far so good. 
There is also a button for inserting new elements to my instance data. And there is the problem. 
When I had a name selected within the select1 and clicked the insert-button, new form fields appear as desired, but my previous name-selection doesn't show the right (selected) name any more. 
The intersting thing is that when I submit the instance data, the values are set correctly. So I assume that there is either some kind of rendering bug or some error in my code. 
What I would like to have is that all my previous settings are retained when new form fields are inserted.
Can you help me with this problem, please?

<xforms:select1 ref="tm:instanceOf/tm:topicRef/@xlink:href" class="topicInstanceOf">
	<xforms:choices>
		<xforms:item>
			<xforms:label>nein</xforms:label>
			<xforms:value />
		</xforms:item>
	</xforms:choices>
	<xforms:itemset nodeset="/tm:topicMap/tm:topic/tm:baseName/tm:baseNameString[string-length()!=0]">
		<xforms:label ref="." />
		<xforms:value ref="../../@id" />
	</xforms:itemset>
</xforms:select1>

wbr,
Roman
Received on Monday, 16 December 2002 03:35:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT