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

Switch and multiple models

From: T. V. Raman <tvraman@us.ibm.com>
Date: Tue, 14 Oct 2003 15:30:24 -0700
Message-ID: <16268.30976.408451.400348@bubbles.almaden.ibm.com>
To: sborgrink@progeny.net
Cc: www-forms@w3.org


what you want in the case of model-based switching is to use
XForms property "relevant".
UI construct <switch> does interaciton-based switching,
i.e. cases toggle on and off based on UI events, not model
events.

For what you want -- place related controls inside a group --and
use model property relevant so that when that property becomes
true during form fill-in, the relevant portion of the UI shows
up.


>>>>> "Borgrink," == Borgrink, Susan <sborgrink@progeny.net> writes:
    Borgrink,> I was looking through the spec and reading through
    Borgrink,> Micah Dubinko's "Xforms Essentials" to understand
    Borgrink,> the switch module better.  I have a couple of
    Borgrink,> questions I can't seem to find the answers to:
    Borgrink,> 
    Borgrink,> 1) Can the case statements of a switch module be
    Borgrink,> bound to a model?  If so, is it possible to have
    Borgrink,> each case statement within a switch bound to a
    Borgrink,> different model?
    Borgrink,> 
    Borgrink,> 2) Can the controls inside of a case statement be
    Borgrink,> mixed?  Meaning if the case statement has three
    Borgrink,> controls, the first be bound to model 'One', the
    Borgrink,> second to model 'Two', and the third to model
    Borgrink,> 'Three'.  Or would all the controls of one case
    Borgrink,> statement have to be bound to the same model?
    Borgrink,> 
    Borgrink,> Thanks, Susan

-- 
Best Regards,
--raman
------------------------------------------------------------
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://almaden.ibm.com/u/tvraman
AIM:      TVRaman
GPG:          http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
Snail:        IBM Almaden Research Center,
              650 Harry Road
              San Jose 95120
Received on Tuesday, 14 October 2003 18:30:28 GMT

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