- From: Klotz, Leigh <Leigh.Klotz@pahv.xerox.com>
- Date: Wed, 12 Nov 2003 13:35:10 -0800
- To: "'Borgrink, Susan'" <sborgrink@progeny.net>, "'www-forms@w3.org'" <www-forms@w3.org>
These are my opinions, but of course I think they're correct ;-) I believe the answer is the same in all three cases: there is no restrictions on model or instance bindings of children of group or the implied groups of switch and repeat. The ref attribute sets the XPath context node for controls inside group|switch|repeat and determines group relevance (via the relevant property and the existence/non-existence of the referenced node). The model attribute sets the default model for controls inside the group; there is one context node per model. Child controls are free to specify their own absolute location path, or even a different model. The bind attribute implies both a ref and a model. In summary, group should set the default model and the context node, and should control display of the entire contained contents (not just XForms children, but all contents) based on relevant and the equivalent treatment of ref binding to non-existent nodes. The model element sets the model for form controls. If model is not specified, the model defaulting rules apply: (roughly, the default model is model of parent XForms control; otherwise default default is first model). There is no other tie between the UI and the model. Is this causing some implementation or consistency problems? Leigh. >From: Borgrink, Susan [mailto:sborgrink@progeny.net] >Sent: Wednesday, November 12, 2003 1:14 PM >To: www-forms@w3.org >Subject: Multiple Models > > > >My colleagues and I have a few points we would like to have verified >about grouping components (switch, group, and repeat) and their model >strictness policies. We would like to make sure we aren't off base >and if so to know, so we can fix it. > > > 1. We believe that the xforms:group component can contain > child components that reference different models only when > there is no ref or bind attribute associated with that group. > > 2. The xforms:switch component contain child components that > reference instance data from different models within its > cases. (except when above rule applies) > > 3. All the child components of an xforms:repeat component > must be of the same model and instance data. > >Thanks, > >Susan Borgrink >FormFaces Developer
Received on Wednesday, 12 November 2003 16:32:51 UTC