Not storing select values in the XForms instance

Hello,

I would like to be add a select1 control to my form, but without having to store the selected value in the XForms instance. The selected value should just be the trigger for a certain case to appear. I had something like:

<xforms:select1 appearance="compact">
	<xforms:hint>Please choose your language</xforms:hint>
	<xforms:label>Language</xforms:label>
	<xforms:choices>
		<xforms:item>
			<xforms:label>Deutsch / German</xforms:label>
			<xforms:value>de</xforms:value>
			<xforms:toggle case="de" ev:event="xforms-activate"/>
		</xforms:item>
		<xforms:item>
			<xforms:label>Englisch / English</xforms:label>
			<xforms:value>en</xforms:value>
			<xforms:toggle case="en" ev:event="xforms-activate"/>
		</xforms:item>
	</xforms:choices>
</xforms:select1>

But as soon as I have to define a binding attribute on my select1 control, I ran into problems. As I can't save the selected value within my instance, I tried to create a "temp" model, which should not be submitted at the end. 
But when I define my control as:

<xforms:select1 appearance="compact" model="temp" ref="tempInstance/language">
......

it doesn't get displayed at all. Can there also be two instances within one XForm model? Does there need to be a binding expression? Would it be possible to achieve this kind of langiage selection in a different way (maybe over html in connection with XForms)?

wbr,
Roman

Received on Thursday, 2 January 2003 03:41:17 UTC