<html xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > <head> <xforms:model> <xforms:instance id="customer-instance"> <customers xmlns="" > <customer> <firstname/> <lastname/> <age/> </customer> </customers> </xforms:instance> <xforms:instance id="remote"> <remote/> </xforms:instance> <xforms:submission id="suggest" serialization="none" method="get" action="http://localhost:9080/orbeon/saving/text" replace="instance" instance="remote"/> </xforms:model> </head> <body> <xforms:group ref="customer"> <xforms:input ref="firstname" incremental="true()" > <xforms:label>First Name</xforms:label> </xforms:input> <xforms:input ref="lastname" incremental="true()" > <xforms:label>Last Name</xforms:label> </xforms:input> <xforms:input ref="age" incremental="true()" > <xforms:label>Age</xforms:label> </xforms:input> <fr:autocomplete ref="instance('customer-instance')" dynamic-itemset="false" style="width: 15em"> <xforms:label>Enter a country name: </xforms:label> <xforms:itemset nodeset="instance('remote')/name"> <xforms:label ref="fname"/> <xforms:value ref="fname"/> </xforms:itemset> <xforms:send ev:event="xforms-value-changed" submission="suggest"/> </fr:autocomplete> </xforms:group> </body> </html> This is my external file where i get the values to be autocompleted <name> <fname>cedric</fname> <lname>nabaa</lname> </name> |
Administrator
|
Cedric,
I see the snippets of code, but what is your comment/question regarding this? Alex On Jan 11, 2010, at 1:05 AM, cedric <[hidden email]> wrote: > > <html xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >> > <head> > <xforms:model> > > > <xforms:instance id="customer-instance"> > <customers xmlns="" > > <customer> > <firstname/> > <lastname/> > <age/> > </customer> > </customers> > </xforms:instance> > > <xforms:instance id="remote"> > <remote/> > </xforms:instance> > > <xforms:submission id="suggest" > serialization="none" > method="get" > action="http://localhost:9080/orbeon/saving/text" > replace="instance" instance="remote"/> > > </xforms:model> > </head> > > <body> > > <xforms:group ref="customer"> > <xforms:input ref="firstname" incremental="true()" > > <xforms:label>First > Name</xforms:label> > </xforms:input> > <xforms:input ref="lastname" > incremental="true()" > > <xforms:label>Last > Name</xforms:label> > </xforms:input> > <xforms:input ref="age" > incremental="true()" >> > <xforms:label>Age</ > xforms:label> > </xforms:input> > > > > <!-- Auto-complete text field --> > <fr:autocomplete ref="instance('customer-instance')" dynamic- > itemset="false" > style="width: 15em"> > <xforms:label>Enter a country name: </xforms:label> > <xforms:itemset nodeset="instance('remote')/name"> > <xforms:label ref="fname"/> > <xforms:value ref="fname"/> > </xforms:itemset> > <xforms:send ev:event="xforms-value-changed" submission="suggest"/> > </fr:autocomplete> > > </xforms:group> > </body> > </html> > > This is my external file where i get the values to be autocompleted > > <name> > <fname>cedric</fname> > <lname>nabaa</lname> > </name> > -- > View this message in context: http://n4.nabble.com/auto-completion-from-an-external-file-tp1011090p1011090.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.com. > > -- > 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 -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |