RE: Switch and multiple models

No, I didn't say that they had to be bound to the same model.
What I said was 
<switch> switches on UI interaction events, not on model changes.

>>>>> "Borgrink," == Borgrink, Susan <sborgrink@progeny.net> writes:
    Borgrink,> I am sorry, I should have clarified my self a
    Borgrink,> little.  I am one of the developers for FormFaces,
    Borgrink,> so along with figuring out how to best write an
    Borgrink,> XForms, we are looking at the way switch works
    Borgrink,> from a compliancy point of view.  Raman, your
    Borgrink,> response does it mean that the controls within a
    Borgrink,> case should all be bound to the same model?
    Borgrink,> 
    Borgrink,> Thanks for the help, Susan
    Borgrink,> 
    Borgrink,> -----Original Message----- From: T. V. Raman
    Borgrink,> [mailto:tvraman@us.ibm.com] Sent: Tuesday, October
    Borgrink,> 14, 2003 6:30 PM To: Borgrink, Susan Cc:
    Borgrink,> www-forms@w3.org Subject: Switch and multiple
    Borgrink,> models
    Borgrink,> 
    Borgrink,> 
    Borgrink,> 
    Borgrink,> what you want in the case of model-based switching
    Borgrink,> is to use XForms property "relevant".  UI
    Borgrink,> construct <switch> does interaciton-based
    Borgrink,> switching, i.e. cases toggle on and off based on
    Borgrink,> UI events, not model events.
    Borgrink,> 
    Borgrink,> For what you want -- place related controls inside
    Borgrink,> a group --and use model property relevant so that
    Borgrink,> when that property becomes true during form
    Borgrink,> fill-in, the relevant portion of the UI shows up.
    Borgrink,> 
    Borgrink,> 
    >>>>>> "Borgrink," == Borgrink, Susan <sborgrink@progeny.net>
    >>>>>> writes:
    Borgrink,>     Borgrink,> I was looking through the spec and
    Borgrink,> reading through Borgrink,> Micah Dubinko's "Xforms
    Borgrink,> Essentials" to understand Borgrink,> the switch
    Borgrink,> module better.  I have a couple of Borgrink,>
    Borgrink,> questions I can't seem to find the answers to:
    Borgrink,> Borgrink,> Borgrink,> 1) Can the case statements
    Borgrink,> of a switch module be Borgrink,> bound to a model?
    Borgrink,> If so, is it possible to have Borgrink,> each case
    Borgrink,> statement within a switch bound to a Borgrink,>
    Borgrink,> different model?  Borgrink,> Borgrink,> 2) Can the
    Borgrink,> controls inside of a case statement be Borgrink,>
    Borgrink,> mixed?  Meaning if the case statement has three
    Borgrink,> Borgrink,> controls, the first be bound to model
    Borgrink,> 'One', the Borgrink,> second to model 'Two', and
    Borgrink,> the third to model Borgrink,> 'Three'.  Or would
    Borgrink,> all the controls of one case Borgrink,> statement
    Borgrink,> have to be bound to the same model?  Borgrink,>
    Borgrink,> Borgrink,> Thanks, Susan
    Borgrink,> 
    Borgrink,> -- Best Regards, --raman
    Borgrink,> ------------------------------------------------------------
    Borgrink,> T. V. Raman: PhD (Cornell University) IBM
    Borgrink,> Research: Human Language Technologies Architect:
    Borgrink,> Conversational And Multimodal WWW Standards Phone:
    Borgrink,> 1 (408) 927 2608 T-Line 457-2608 Fax: 1 (408) 927
    Borgrink,> 3012 Cell: 1 650 799 5724 Email:
    Borgrink,> tvraman@us.ibm.com WWW:
    Borgrink,> http://almaden.ibm.com/u/tvraman AIM: TVRaman GPG:
    Borgrink,> http://www.almaden.ibm.com/cs/people/tvraman/raman-almaden.asc
    Borgrink,> Snail: IBM Almaden Research Center, 650 Harry Road
    Borgrink,> San Jose 95120

-- 
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 Wednesday, 15 October 2003 10:21:06 UTC