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

Re: AW: Bindings to non-existing instance:data

From: Roland Merrick <roland_merrick@uk.ibm.com>
Date: Mon, 2 Dec 2002 13:16:48 +0000
To: "Roman Huditsch" <roman.huditsch@hico.com>
Cc: www-forms@w3.org
Message-ID: <OF4D1F3A0E.AD7FA464-ON80256C83.00488233@portsmouth.uk.ibm.com>
Greetings, I'm afraid the answer is a short one, "no".

Regards, Roland




"Roman Huditsch" <roman.huditsch@hico.com>
02/12/2002 12:21

 
        To:     Roland Merrick/UK/IBM@IBMGB
        cc:     <www-forms@w3.org>
        Subject:        AW: Bindings to non-existing instance:data

 



Hello,
 
What  I want to do is the following: 
I  would like to define some input field like:
 
<xforms:input ref="topicmap/topic/topicName">
    <xforms:label>Topic  Name:</xforms:label>
</xform:input>
 
<xforms:input ref="topicmap/topic/@id">
    <xforms:label>Topic  ID:</xforms:label>
</xform:input>
 
....
 
Is  it possible to define somehow that as soon as the user has done some 
input on  these fields the according elements (or attributes) in the 
instance are created 
 
wbr,
Roman
-----Ursprüngliche Nachricht-----
Von: Roland Merrick  [mailto:roland_merrick@uk.ibm.com]
Gesendet: Montag, 2. Dezember  2002 12:07
An: Roman Huditsch
Cc:  www-forms@w3.org
Betreff: Re: Bindings to non-existing  instance:data



Greetings  Roman, the section describing the xforms-form-control-initialize Event  describes what happens. 
[  http://www.w3.org/TR/xforms/slice4.html#evt-formControlInitialize ] 

There are two basic situations which can  lead to there being no instance 
data node for the UI element to bind  to. 

1) No <instance> was  supplied in which case an instance data node will be 
created when the UI  element is initialised. 
2) There is an  <instance> but there is nothing for the UI element to bind 
to, in this  case the UI control should behave as if it was bound to a 
non-relevant  node.

Regards, Roland 




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

02/12/2002 10:25 

        
        To:         <www-forms@w3.org> 
        cc:          
         Subject:        Bindings to non-existing  instance:data 

        


Hello,

I have quite a short  question. I thought that I read it somewhere in the 
spec but I couldn't find  the passage again.
What happens if I refer from a xform control to an  element in my 
xforms:instance, which doesn't yet exist? Is it (the instance 
element)created when the user fills in the form  control?

Or do I have to define a trigger,  whichs creates the needed instance 
elements before?

wbr,
Roman

Roman Huditsch  (hRHU )
Developer .:. Information & Application  Engineering
_____________________________________________________________________
hico  Informations- und Kommunikations-Management Gesellschaft m.b.H.
TechLab,  Thomas A. Edison Straße 2.
A-7000 Eisenstadt / Austria
phone:  +43/2682/704-61-73; fax: +43/2682/704-71-61-10
e-mail:  roman.huditsch@hico.com
mobile: +43/664/4102715 



#### Roman Huditsch.vcf has been  removed from this note on December 02 
2002 by Roland Merrick 
Received on Monday, 2 December 2002 08:16:54 GMT

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