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

retaining previous settings in a select1

From: T. V. Raman <tvraman@us.ibm.com>
Date: Mon, 16 Dec 2002 07:30:13 -0800
Message-ID: <15869.61829.900693.939528@bubbles.almaden.ibm.com>
To: "Roman Huditsch" <roman.huditsch@hico.com>
Cc: <www-forms@w3.org>

I'm confused, I dont see a repeat in your example, did you mean the

Incidentally, would you be willing to contribute complete working
examples to the XForms WG for our Examples area?
We'll give you full credit, acknowledge your contribution  --for which
you'll probably be rewarded with even more spam than you already get :-)>>>>> "Roman" == Roman Huditsch <roman.huditsch@hico.com> writes:

    Roman> Hello all,

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

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

    Roman> wbr, Roman

Best Regards,
T. V. Raman:  PhD (Cornell University)
IBM Research: Human Language Technologies
Architect:    Conversational And Multimodal WWW Standards
Phone:        1 (408) 927 2608   T-Line 457-2608
Fax:        1 (408) 927 3012     Cell: 1 650 799 5724
Email:        tvraman@us.ibm.com
WWW:      http://www.cs.cornell.edu/home/raman
AIM:      TVRaman
PGP:          http://emacspeak.sf.net/raman.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120
Received on Monday, 16 December 2002 10:32:34 UTC

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