Hello,
I am studing your implementation of xforms, but I want to know how do you do the bind between the model's variable and an input field in the client-side. It is said, if we have the next model: <xforms:model> <xforms:instance> <first-name id="id1" xmlns="" /> </xforms:instance> </xforms:model> And we have an <xforms:input id="first" > in the same xform file. How do you do the bind between <first-name /> and the input to add to the model the data introduced into the input field in the client-side? -- Un saludo Javier Cerro UCLM - Instituto de Investigación Informática de Albacete -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi Javier, You could try: <xforms:input ref=”/first-name” /> You could also set up an xforms:bind in the model and use the @bind
attribute on your control to reference it (useful if you need to set up any
validation constraints in your model): <xforms:model> <xforms:instance> …. </xforms:instance> <xforms:bind
id=”bnd_first_name” nodeset=”/first-name” /> </xforms:model> …. <xforms:input bind=”bnd_first_name” /> If you need to use more than one instance, you can also add an
@id attribute to the instance (e.g. id=”inst_person”), and
reference it like this: <xforms:input ref=”instance(‘inst_person’)/../first-name”
/> Cheers, Dan Dan Godley Standards Developer From: Javier Cerro
[mailto:[hidden email]] Hello, E-mail disclaimer The information in this e-mail is sent in confidence for the addressee only and may be legally privileged. Unauthorised recipients must preserve this confidentiality and should please advise the sender immediately of the error in transmission and then delete this e-mail. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on its content is prohibited and may be unlawful. Origo Services Limited accepts no responsibility for any loss or damage resulting directly or indirectly from the use of this e-mail or the contents. It is your responsibility to scan for viruses. Origo Services Limited reserves the right to monitor e-mails sent to or from addresses under its control. When you reply to this e-mail, you are consenting to Origo Services Limited monitoring the content of the e-mails you send to or receive from Origo Services Limited. If this e-mail is non-business related Origo Services Limited is not liable for any opinions expressed by the sender. The contents of this e-mail are protected by copyright. All rights reserved. Origo Services Limited is a company incorporated in Scotland (company number 115061) having its registered office at 4th floor, Saltire Court, 20 Castle Terrace, Edinburgh EH1 2EN. -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |