AW: using toggle within select1

Thanks very much for thta really good hint. Now it works really fine. 
The point was that I didn't know exactly that I really can combine a select control with a toggle.
 
wbr,
Roman

-----Ursprüngliche Nachricht-----
Von: Roland Merrick [mailto:roland_merrick@uk.ibm.com]
Gesendet: Montag, 2. Dezember 2002 12:17
An: Roman Huditsch
Cc: www-forms@w3.org
Betreff: Re: using toggle within select1



Greetings Roman, the event you want is xforms-select, see 4.4.4 The xforms-select and xforms-deselect Events [ http://www.w3.org/TR/xforms/slice4.html#evt-select ] 

<xforms:toggle case="en" ev:event="xforms-select"/> 

There are other ways to internationalise forms, see 8.3 Additional Elements [ http://www.w3.org/TR/xforms/slice8.html#ui-commonelems ]

Regards, Roland 



	"Roman Huditsch" <roman.huditsch@hico.com> 
Sent by: www-forms-request@w3.org 


29/11/2002 08:41 


        
        To:        <www-forms@w3.org> 
        cc:         
        Subject:        using toggle within select1 

       




Hello Sirs,

While I am writing my thesis statement, I want to develop an XForms File, which is able to create XML Topic Maps.
So I rather soon came up with some questions.
I would like to implement a mechanism for choosing the language of the displayed form labels. I thought that a <select1> will do it (I didn't want this mechanism to appear as a button).

The problem now is that I don't know how to combine my <select1> with a <toggle> element, which should switch between two <case>s.
How can I achieve that? I wrote something like:

<xforms:select1 appearance="compact">
<xforms:hint>Wählen Sie hier die Sprache der Formularfeldbeschriftungen</xforms:hint>
<xforms:label>Sprache</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 I don't think that it works. A very important point is that I don't want the exact values of each item to appear in my document instance. So it gets a bit more complicated.
Can you please help me on that?


wbr,
Roman 

Received on Monday, 2 December 2002 06:58:07 UTC