Hi,
I just had a quick look at using the XForms engine [1] without the whole Orbeon forms system. Before I start extracting the XForms engine, I would like to ask for potential limitations: 1) Is the XForms engine itself capable of producing a pdf out of an XForm? As far as I have seen I can send an XForms document to the engine, is it possible to send a PDF template "on-the-fly" to the engine the same way? 2) Can the XForms engine execute all forms produced by the Orbeon XForms builder, or doesn't it handle orbeon-specific extensions? 3) Are there any other expected limitations beyond missing PFC and XML pipelines? I think the whole persistence layer doesn't make any sense anymore in this context, right? Thank you very much! [1] http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications |
Administrator
|
On Thu, Apr 22, 2010 at 3:27 AM, lacco <[hidden email]> wrote:
> 1) Is the XForms engine itself capable of producing a pdf out of an XForm? > As far as I have seen I can send an XForms document to the engine, is it > possible to send a PDF template "on-the-fly" to the engine the same way? It is not the XForms engine that produces PDF (this is not something part of the XForms specification), but other processors that generate PDF based on an XML document "created" with XForms (i.e. based on the data entered by users in a form). > 2) Can the XForms engine execute all forms produced by the Orbeon XForms > builder, or doesn't it handle orbeon-specific extensions? Form generated by Form Builder rely on XForms + Form Runner, which is itself written in XSLT, XPL, XBL. > 3) Are there any other expected limitations beyond missing PFC and XML > pipelines? I think the whole persistence layer doesn't make any sense > anymore in this context, right? The persistence layer is part of Form Runner, and is used by your forms when they run. You could isolate the core XForms engine, but it would be close to useless without the rest. A little bit like the Linux kernel would be useless without all the modules, glibc, the GNU command line utilities, etc. Alex -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
Hello,
I'm working with a variation of Ethan Gruber's xforms to dynamically autocomplete values for a repeatable field. The autocomplete values are a dynamic itemset, retrieved by a web query to a solr index. Thanks to Ethan's good work, the query and web response for the autocomplete dynamic itemset is working quite well. However, we have run into a problem where the xforms freezes when you click on the trigger to delete one of the repeatable autocomplete fields. I've run it on a number of different platforms and browsers, with the same results. Looking at it in Firebug, I see this error is being generated: uncaught exception: ORBEON.xforms.Document.setValue: can't find control id 'subject-field$external-value·2' ("subject field" is the id of the fr:autocomplete control. The $external-value index number varies, depending on how many repeatable fields you have.) I'm running Orbeon dev-post-3.7.1.201004130300-CE. Attached is an xforms you can use to test the behavior. The solr web service is configured on localhost, but that isn't necessary to test the delete behavior. Any light you could shed on the problem would be much appreciated. thanks, -- Scott -- Scott Prater Library, Instructional, and Research Applications (LIRA) Division of Information Technology (DoIT) University of Wisconsin - Madison [hidden email] -- 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 test.xhtml (8K) Download Attachment |
Administrator
|
Hi Scott,
Nice catch! And thank you for the simple reproducible example. I fixed this one, and it will be in the next nightly build. You'll let me know if it works for you. For reference, the bug is: http://forge.ow2.org/tracker/index.php?func=detail&aid=314957&group_id=168&atid=350207 Alex On Thu, Apr 22, 2010 at 4:22 PM, Scott Prater <[hidden email]> wrote: > Hello, > > I'm working with a variation of Ethan Gruber's xforms to dynamically > autocomplete values for a repeatable field. The autocomplete values are a > dynamic itemset, retrieved by a web query to a solr index. Thanks to > Ethan's good work, the query and web response for the autocomplete dynamic > itemset is working quite well. > > However, we have run into a problem where the xforms freezes when you click > on the trigger to delete one of the repeatable autocomplete fields. > > I've run it on a number of different platforms and browsers, with the same > results. Looking at it in Firebug, I see this error is being generated: > > uncaught exception: ORBEON.xforms.Document.setValue: can't find control > id 'subject-field$external-value·2' > > ("subject field" is the id of the fr:autocomplete control. The > $external-value index number varies, depending on how many repeatable fields > you have.) > > I'm running Orbeon dev-post-3.7.1.201004130300-CE. Attached is an xforms > you can use to test the behavior. The solr web service is configured on > localhost, but that isn't necessary to test the delete behavior. > > Any light you could shed on the problem would be much appreciated. > > thanks, > > -- Scott > > -- > Scott Prater > Library, Instructional, and Research Applications (LIRA) > Division of Information Technology (DoIT) > University of Wisconsin - Madison > [hidden email] > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
In reply to this post by Alessandro Vernet
I would like to reformulate my question since I'm not sure if you got the question right: When I am designing a form with form builder, would the (extracted) XForms engine be able to produce converted XHTML from the XForms "source" (copied from the "Edit Source" dialog box)? Thx! |
In reply to this post by Alessandro Vernet
Thanks, Alex! I'll download the latest nightly build today and test it out.
-- Scott Alessandro Vernet wrote: > Hi Scott, > > Nice catch! And thank you for the simple reproducible example. I fixed > this one, and it will be in the next nightly build. You'll let me know > if it works for you. For reference, the bug is: > > http://forge.ow2.org/tracker/index.php?func=detail&aid=314957&group_id=168&atid=350207 > > Alex > > On Thu, Apr 22, 2010 at 4:22 PM, Scott Prater <[hidden email]> wrote: >> Hello, >> >> I'm working with a variation of Ethan Gruber's xforms to dynamically >> autocomplete values for a repeatable field. The autocomplete values are a >> dynamic itemset, retrieved by a web query to a solr index. Thanks to >> Ethan's good work, the query and web response for the autocomplete dynamic >> itemset is working quite well. >> >> However, we have run into a problem where the xforms freezes when you click >> on the trigger to delete one of the repeatable autocomplete fields. >> >> I've run it on a number of different platforms and browsers, with the same >> results. Looking at it in Firebug, I see this error is being generated: >> >> uncaught exception: ORBEON.xforms.Document.setValue: can't find control >> id 'subject-field$external-value·2' >> >> ("subject field" is the id of the fr:autocomplete control. The >> $external-value index number varies, depending on how many repeatable fields >> you have.) >> >> I'm running Orbeon dev-post-3.7.1.201004130300-CE. Attached is an xforms >> you can use to test the behavior. The solr web service is configured on >> localhost, but that isn't necessary to test the delete behavior. >> >> Any light you could shed on the problem would be much appreciated. >> >> thanks, >> >> -- Scott >> >> -- >> Scott Prater >> Library, Instructional, and Research Applications (LIRA) >> Division of Information Technology (DoIT) >> University of Wisconsin - Madison >> [hidden email] >> >> >> -- >> 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 >> >> > > > -- Scott Prater Library, Instructional, and Research Applications (LIRA) Division of Information Technology (DoIT) University of Wisconsin - Madison [hidden email] -- 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 |
Thanks, Alex!
It works great. I have a little CSS tweaking to do (the label is hidden behind the input), but it functions properly. This was a fairly debilitating bug in my form. Ethan
On Mon, Apr 26, 2010 at 10:18 AM, Scott Prater <[hidden email]> wrote: Thanks, Alex! I'll download the latest nightly build today and test it out. -- 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 |
Hello,
I change recently my Orbeon version and now, i have some troubles with the line-codes with "fr:autocomplete" I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the difference with the PE version?) and Tomcat version 6.0.26. I use Firefox version 3.5.9 An example: When I write : <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" appearance="minimal" > <xf:label>RNE: </xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab"> <xf:label ref="rne" /> <xf:value ref="rne" /> </xf:itemset> </xf:select1> There is no problem, but when i write in the same place: <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" dynamic-itemset="false"> <xf:label >RNE:</xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab" > <xf:label ref="rne" /> <xf:value ref="rne" /> </xf:itemset> </fr:autocomplete> I have an error page with "/[No error message provided.]" I don't know where is the problem... Any help? Fabien. / -- 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 |
Administrator
|
In reply to this post by lacco
The "extracted XForms engine" doesn't exist, so I can't speculate on
what a piece of software that doesn't exist could possibly do ;). The answer is yes, assuming that piece of code knows how to run everything that Form Builder generates (tautology intended). The bigger point is that this "extraction" has never been done by anyone out there, because, IMHO, it doesn't solve a problem big enough to be worth the effort. Or, said otherwise, because, so far, people have found simpler ways to solve that problem (in some cases: separate deployment). Alex On Sat, Apr 24, 2010 at 7:30 AM, lacco <[hidden email]> wrote: > > > Alessandro Vernet wrote: >> >>> 2) Can the XForms engine execute all forms produced by the Orbeon XForms >>> builder, or doesn't it handle orbeon-specific extensions? >> >> Form generated by Form Builder rely on XForms + Form Runner, which is >> itself written in XSLT, XPL, XBL. >> > > I would like to reformulate my question since I'm not sure if you got the > question right: When I am designing a form with form builder, would the > (extracted) XForms engine be able to produce converted XHTML from the XForms > "source" (copied from the "Edit Source" dialog box)? > > Thx! > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Limitations-of-XForms-Engine-tp2020347p2063530.html > Sent from the Orbeon Forms (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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
Thx for your answer. While stepping through more Orbeon source code, I
got the same impression: There aren't only some classes which undertake all the XForms work, it seems that some additional pipelines & processors are needed for this, too. That's why I started another thread where I tried to combine html-view.xpl and epilogue.xpl pipelines to move in the correct direction: http://orbeon-forms-ops-users.24843.n4.nabble.com/Which-Pipeline-for-XForms-XHTML-td2065893.html Any help on this topic would be appreciated. On Wed, Apr 28, 2010 at 8:19 AM, Alessandro Vernet [via Orbeon Forms (ops-users)] <[hidden email]> wrote: > The "extracted XForms engine" doesn't exist, so I can't speculate on > what a piece of software that doesn't exist could possibly do ;). The > answer is yes, assuming that piece of code knows how to run everything > that Form Builder generates (tautology intended). > > The bigger point is that this "extraction" has never been done by > anyone out there, because, IMHO, it doesn't solve a problem big enough > to be worth the effort. Or, said otherwise, because, so far, people > have found simpler ways to solve that problem (in some cases: separate > deployment). > > Alex > > On Sat, Apr 24, 2010 at 7:30 AM, lacco <[hidden email]> wrote: >> >> >> Alessandro Vernet wrote: >>> >>>> 2) Can the XForms engine execute all forms produced by the Orbeon XForms >>>> builder, or doesn't it handle orbeon-specific extensions? >>> >>> Form generated by Form Builder rely on XForms + Form Runner, which is >>> itself written in XSLT, XPL, XBL. >>> >> >> I would like to reformulate my question since I'm not sure if you got the >> question right: When I am designing a form with form builder, would the >> (extracted) XForms engine be able to produce converted XHTML from the >> XForms >> "source" (copied from the "Edit Source" dialog box)? >> >> Thx! >> -- >> View this message in context: >> http://orbeon-forms-ops-users.24843.n4.nabble.com/Limitations-of-XForms-Engine-tp2020347p2063530.html >> Sent from the Orbeon Forms (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 >> >> > > -- > Orbeon Forms - Web forms, open-source, for the Enterprise - > http://www.orbeon.com/ > My Twitter: http://twitter.com/avernet > > > -- > 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 > > > ________________________________ > View message @ > http://orbeon-forms-ops-users.24843.n4.nabble.com/Limitations-of-XForms-Engine-tp2020347p2068672.html > To unsubscribe from Re: Limitations of XForms Engine, click here. > |
In reply to this post by Fabien GUENEGO
Hello,
I write a test file for this problem. With the test file, we see that the problem is not exactly the fr:autocomplete... When i use the xf:select1, there is no problem. When i use the fr:autocomplete, there is an error. And when i put "New" in the session/nom node, I see the autocomplete field but, not the choice item. Any help? Fabien This is the file: <?xml version="1.0" encoding="ISO-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XForms</title> <xf:model id="menuModel"> <xf:instance id="sessionInstance" xmlns=""> <session> <etab> <rne>06716</rne> <ville>STRA</ville> <nom>Bla</nom> </etab> </session> </xf:instance> </xf:model> <xf:model id="connexionModel"> <xf:instance id="listEtabInscritInstance" xmlns=""> <listEtabInscrit> <etab> <rne>0671A</rne> <ville>STRA</ville> <nom>TWINGER</nom> </etab> <etab> <rne>0671Z</rne> <ville>STRAG</ville> <nom> STOCKFELD</nom> </etab> </listEtabInscrit> </xf:instance> <xf:instance id="etablissementInstance" xmlns=""> <etab> <rne /> <ville /> <nom /> </etab> </xf:instance> </xf:model> </head> <body> <div id="divPage"> <xf:group ref="xxforms:instance('sessionInstance')/etab/nom[.!='New']"> <p>New? <xf:trigger> <xf:label>new </xf:label> <xf:action ev:event="DOMActivate"> <xf:setvalue ref="xxforms:instance('sessionInstance')/etab/nom">New</xf:setvalue> </xf:action> </xf:trigger></p> </xf:group> <xf:group ref="xxforms:instance('sessionInstance')/etab/nom[.='New']"> Sélection:<br /> <br /> <!-- --> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" dynamic-itemset="false"> <xf:label>RNE:</xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab"> <xf:label ref="rne" /> <xf:value ref="rne" /> </xf:itemset> </fr:autocomplete> <!-- <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" appearance="minimal"> <xf:label>RNE: </xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab"> <xf:label ref="rne" /> <xf:value ref="rne" /> </xf:itemset> </xf:select1> --> </xf:group></div> </body> </html> Fabien GUENEGO a écrit : > Hello, > I change recently my Orbeon version and now, i have some troubles with > the line-codes with "fr:autocomplete" > > I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the > difference with the PE version?) and Tomcat version 6.0.26. I use > Firefox version 3.5.9 > > An example: > When I write : > <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" > appearance="minimal" > > <xf:label>RNE: </xf:label> > <xf:itemset > nodeset="xxforms:instance('listEtabInscritInstance')/etab"> > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </xf:select1> > > There is no problem, but when i write in the same place: > > <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" > dynamic-itemset="false"> > <xf:label >RNE:</xf:label> > <xf:itemset > nodeset="xxforms:instance('listEtabInscritInstance')/etab" > > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </fr:autocomplete> > I have an error page with "/[No error message provided.]" > > I don't know where is the problem... > > Any help? > Fabien. > / -- 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 |
Administrator
|
In reply to this post by Fabien GUENEGO
Fabien,
There were some significant changes done to the autocomplete, so it is hard to say what fails in your particular case. Could you attach to your response a simple example that we can run the XForms sandbox where you use the autocomplete control, so we can reproduce the problem you're seeing? Alex On Tue, Apr 27, 2010 at 12:05 PM, Fabien GUENEGO <[hidden email]> wrote: > Hello, > I change recently my Orbeon version and now, i have some troubles with the > line-codes with "fr:autocomplete" > > I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the > difference with the PE version?) and Tomcat version 6.0.26. I use Firefox > version 3.5.9 > > An example: > When I write : > <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" > appearance="minimal" > > <xf:label>RNE: </xf:label> > <xf:itemset > nodeset="xxforms:instance('listEtabInscritInstance')/etab"> > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </xf:select1> > > There is no problem, but when i write in the same place: > > <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" > dynamic-itemset="false"> > <xf:label >RNE:</xf:label> > <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab" > > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </fr:autocomplete> > I have an error page with "/[No error message provided.]" > > I don't know where is the problem... > > Any help? > Fabien. > / > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
Administrator
|
In reply to this post by Fabien GUENEGO
Fabien,
Thank you for the example; you read my mind :). I am running it here, and it seem to work fine. I click on the New button, the field shows, I type 0 in it, and the two values (0671A and 0671Z) come up as suggestions. This on Firefox. Are you seeing something different? Alex On Wed, Apr 28, 2010 at 1:08 AM, Fabien GUENEGO <[hidden email]> wrote: > Hello, > > I write a test file for this problem. With the test file, we see that the > problem is not exactly the fr:autocomplete... > When i use the xf:select1, there is no problem. > When i use the fr:autocomplete, there is an error. And when i put "New" in > the session/nom node, I see the autocomplete field but, not the choice > item. > > Any help? > > Fabien > > > This is the file: > <?xml version="1.0" encoding="ISO-8859-1"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xf="http://www.w3.org/2002/xforms"> > <head> > <title>XForms</title> > > <xf:model id="menuModel"> > <xf:instance id="sessionInstance" xmlns=""> > <session> <etab> <rne>06716</rne> <ville>STRA</ville> > <nom>Bla</nom> </etab> </session> > </xf:instance> > </xf:model> > <xf:model id="connexionModel"> > > <xf:instance id="listEtabInscritInstance" xmlns=""> > <listEtabInscrit> <etab> <rne>0671A</rne> <ville>STRA</ville> > <nom>TWINGER</nom> </etab> <etab> <rne>0671Z</rne> > <ville>STRAG</ville> > <nom> STOCKFELD</nom> </etab> </listEtabInscrit> > </xf:instance> > > <xf:instance id="etablissementInstance" xmlns=""> > <etab> <rne /> <ville /> <nom /> </etab> > </xf:instance> > > </xf:model> > </head> > <body> > > > <div id="divPage"> > <xf:group ref="xxforms:instance('sessionInstance')/etab/nom[.!='New']"> > > <p>New? <xf:trigger> > <xf:label>new </xf:label> > > <xf:action ev:event="DOMActivate"> > <xf:setvalue > ref="xxforms:instance('sessionInstance')/etab/nom">New</xf:setvalue> > </xf:action> > </xf:trigger></p> > </xf:group> <xf:group > ref="xxforms:instance('sessionInstance')/etab/nom[.='New']"> > Sélection:<br /> > <br /> > <!-- --> > <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" > dynamic-itemset="false"> > <xf:label>RNE:</xf:label> > <xf:itemset > nodeset="xxforms:instance('listEtabInscritInstance')/etab"> > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </fr:autocomplete> > > <!-- > <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" > appearance="minimal"> > <xf:label>RNE: </xf:label> > <xf:itemset > nodeset="xxforms:instance('listEtabInscritInstance')/etab"> > <xf:label ref="rne" /> > <xf:value ref="rne" /> > </xf:itemset> > </xf:select1> > --> > </xf:group></div> > > </body> > </html> > > > Fabien GUENEGO a écrit : >> >> Hello, >> I change recently my Orbeon version and now, i have some troubles with the >> line-codes with "fr:autocomplete" >> >> I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the >> difference with the PE version?) and Tomcat version 6.0.26. I use Firefox >> version 3.5.9 >> >> An example: >> When I write : >> <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" >> appearance="minimal" > >> <xf:label>RNE: </xf:label> >> <xf:itemset >> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >> <xf:label ref="rne" /> >> <xf:value ref="rne" /> >> </xf:itemset> >> </xf:select1> >> >> There is no problem, but when i write in the same place: >> >> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" >> dynamic-itemset="false"> >> <xf:label >RNE:</xf:label> >> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab" > >> <xf:label ref="rne" /> >> <xf:value ref="rne" /> >> </xf:itemset> >> </fr:autocomplete> I have an error page with "/[No error message >> provided.]" >> >> I don't know where is the problem... >> >> Any help? >> Fabien. >> / > > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
In reply to this post by Ethan Gruber
Thanks, Alex! I tested it against last night's build with my XForms
also, and it worked. It also looks like Winona's problem with the select lists reappearing when you mouse click in another form element is also fixed (I had that problem, too). -- Scott Ethan Gruber wrote: > Thanks, Alex! > > It works great. I have a little CSS tweaking to do (the label is hidden > behind the input), but it functions properly. This was a fairly > debilitating bug in my form. > > Ethan > > On Mon, Apr 26, 2010 at 10:18 AM, Scott Prater <[hidden email]> wrote: > >> Thanks, Alex! I'll download the latest nightly build today and test it >> out. >> >> -- Scott >> >> >> Alessandro Vernet wrote: >> >>> Hi Scott, >>> >>> Nice catch! And thank you for the simple reproducible example. I fixed >>> this one, and it will be in the next nightly build. You'll let me know >>> if it works for you. For reference, the bug is: >>> >>> >>> http://forge.ow2.org/tracker/index.php?func=detail&aid=314957&group_id=168&atid=350207 >>> >>> Alex >>> Scott Prater Library, Instructional, and Research Applications (LIRA) Division of Information Technology (DoIT) University of Wisconsin - Madison [hidden email] -- 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 |
In reply to this post by Alessandro Vernet
Hello,
I download the last orbeon version (orbeon-3.8.0.rc1.201005020325-CE) and now, i have no more problem with my test file. I can go back in my project :-) Thanks for your attention, Fabien Alessandro Vernet a écrit : > Fabien, > > Thank you for the example; you read my mind :). I am running it here, > and it seem to work fine. I click on the New button, the field shows, > I type 0 in it, and the two values (0671A and 0671Z) come up as > suggestions. This on Firefox. Are you seeing something different? > > Alex > > On Wed, Apr 28, 2010 at 1:08 AM, Fabien GUENEGO <[hidden email]> wrote: > >> Hello, >> >> I write a test file for this problem. With the test file, we see that the >> problem is not exactly the fr:autocomplete... >> When i use the xf:select1, there is no problem. >> When i use the fr:autocomplete, there is an error. And when i put "New" in >> the session/nom node, I see the autocomplete field but, not the choice >> item. >> >> Any help? >> >> Fabien >> >> >> This is the file: >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:ev="http://www.w3.org/2001/xml-events" >> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> xmlns:xf="http://www.w3.org/2002/xforms"> >> <head> >> <title>XForms</title> >> >> <xf:model id="menuModel"> >> <xf:instance id="sessionInstance" xmlns=""> >> <session> <etab> <rne>06716</rne> <ville>STRA</ville> >> <nom>Bla</nom> </etab> </session> >> </xf:instance> >> </xf:model> >> <xf:model id="connexionModel"> >> >> <xf:instance id="listEtabInscritInstance" xmlns=""> >> <listEtabInscrit> <etab> <rne>0671A</rne> <ville>STRA</ville> >> <nom>TWINGER</nom> </etab> <etab> <rne>0671Z</rne> >> <ville>STRAG</ville> >> <nom> STOCKFELD</nom> </etab> </listEtabInscrit> >> </xf:instance> >> >> <xf:instance id="etablissementInstance" xmlns=""> >> <etab> <rne /> <ville /> <nom /> </etab> >> </xf:instance> >> >> </xf:model> >> </head> >> <body> >> >> >> <div id="divPage"> >> <xf:group ref="xxforms:instance('sessionInstance')/etab/nom[.!='New']"> >> >> <p>New? <xf:trigger> >> <xf:label>new </xf:label> >> >> <xf:action ev:event="DOMActivate"> >> <xf:setvalue >> ref="xxforms:instance('sessionInstance')/etab/nom">New</xf:setvalue> >> </xf:action> >> </xf:trigger></p> >> </xf:group> <xf:group >> ref="xxforms:instance('sessionInstance')/etab/nom[.='New']"> >> Sélection:<br /> >> <br /> >> <!-- --> >> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" >> dynamic-itemset="false"> >> <xf:label>RNE:</xf:label> >> <xf:itemset >> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >> <xf:label ref="rne" /> >> <xf:value ref="rne" /> >> </xf:itemset> >> </fr:autocomplete> >> >> <!-- >> <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" >> appearance="minimal"> >> <xf:label>RNE: </xf:label> >> <xf:itemset >> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >> <xf:label ref="rne" /> >> <xf:value ref="rne" /> >> </xf:itemset> >> </xf:select1> >> --> >> </xf:group></div> >> >> </body> >> </html> >> >> >> Fabien GUENEGO a écrit : >> >>> Hello, >>> I change recently my Orbeon version and now, i have some troubles with the >>> line-codes with "fr:autocomplete" >>> >>> I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the >>> difference with the PE version?) and Tomcat version 6.0.26. I use Firefox >>> version 3.5.9 >>> >>> An example: >>> When I write : >>> <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" >>> appearance="minimal" > >>> <xf:label>RNE: </xf:label> >>> <xf:itemset >>> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >>> <xf:label ref="rne" /> >>> <xf:value ref="rne" /> >>> </xf:itemset> >>> </xf:select1> >>> >>> There is no problem, but when i write in the same place: >>> >>> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" >>> dynamic-itemset="false"> >>> <xf:label >RNE:</xf:label> >>> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab" > >>> <xf:label ref="rne" /> >>> <xf:value ref="rne" /> >>> </xf:itemset> >>> </fr:autocomplete> I have an error page with "/[No error message >>> provided.]" >>> >>> I don't know where is the problem... >>> >>> Any help? >>> Fabien. >>> / >>> >> >> -- >> 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 |
Administrator
|
In reply to this post by Scott Prater
Scott,
Excellent; thank you for confirming this. Alex On Fri, Apr 30, 2010 at 6:07 AM, Scott Prater <[hidden email]> wrote: > Thanks, Alex! I tested it against last night's build with my XForms also, > and it worked. It also looks like Winona's problem with the select lists > reappearing when you mouse click in another form element is also fixed (I > had that problem, too). > > -- Scott > > Ethan Gruber wrote: >> >> Thanks, Alex! >> >> It works great. I have a little CSS tweaking to do (the label is hidden >> behind the input), but it functions properly. This was a fairly >> debilitating bug in my form. >> >> Ethan >> >> On Mon, Apr 26, 2010 at 10:18 AM, Scott Prater <[hidden email]> wrote: >> >>> Thanks, Alex! I'll download the latest nightly build today and test it >>> out. >>> >>> -- Scott >>> >>> >>> Alessandro Vernet wrote: >>> >>>> Hi Scott, >>>> >>>> Nice catch! And thank you for the simple reproducible example. I fixed >>>> this one, and it will be in the next nightly build. You'll let me know >>>> if it works for you. For reference, the bug is: >>>> >>>> >>>> >>>> http://forge.ow2.org/tracker/index.php?func=detail&aid=314957&group_id=168&atid=350207 >>>> >>>> Alex >>>> > > -- > Scott Prater > Library, Instructional, and Research Applications (LIRA) > Division of Information Technology (DoIT) > University of Wisconsin - Madison > [hidden email] > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
Administrator
|
In reply to this post by Fabien GUENEGO
Fabien,
Good then; I'll assume that some other change fixed this one. Alex On Sun, May 2, 2010 at 1:01 PM, Fabien GUENEGO <[hidden email]> wrote: > Hello, > > I download the last orbeon version (orbeon-3.8.0.rc1.201005020325-CE) and > now, i have no more problem with my test file. > I can go back in my project :-) > Thanks for your attention, > > Fabien > > Alessandro Vernet a écrit : >> >> Fabien, >> >> Thank you for the example; you read my mind :). I am running it here, >> and it seem to work fine. I click on the New button, the field shows, >> I type 0 in it, and the two values (0671A and 0671Z) come up as >> suggestions. This on Firefox. Are you seeing something different? >> >> Alex >> >> On Wed, Apr 28, 2010 at 1:08 AM, Fabien GUENEGO <[hidden email]> >> wrote: >> >>> >>> Hello, >>> >>> I write a test file for this problem. With the test file, we see that the >>> problem is not exactly the fr:autocomplete... >>> When i use the xf:select1, there is no problem. >>> When i use the fr:autocomplete, there is an error. And when i put "New" >>> in >>> the session/nom node, I see the autocomplete field but, not the choice >>> item. >>> >>> Any help? >>> >>> Fabien >>> >>> >>> This is the file: >>> <?xml version="1.0" encoding="ISO-8859-1"?> >>> <html xmlns="http://www.w3.org/1999/xhtml" >>> xmlns:ev="http://www.w3.org/2001/xml-events" >>> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >>> xmlns:xf="http://www.w3.org/2002/xforms"> >>> <head> >>> <title>XForms</title> >>> >>> <xf:model id="menuModel"> >>> <xf:instance id="sessionInstance" xmlns=""> >>> <session> <etab> <rne>06716</rne> <ville>STRA</ville> >>> <nom>Bla</nom> </etab> </session> >>> </xf:instance> >>> </xf:model> >>> <xf:model id="connexionModel"> >>> >>> <xf:instance id="listEtabInscritInstance" xmlns=""> >>> <listEtabInscrit> <etab> <rne>0671A</rne> <ville>STRA</ville> >>> <nom>TWINGER</nom> </etab> <etab> <rne>0671Z</rne> >>> <ville>STRAG</ville> >>> <nom> STOCKFELD</nom> </etab> </listEtabInscrit> >>> </xf:instance> >>> >>> <xf:instance id="etablissementInstance" xmlns=""> >>> <etab> <rne /> <ville /> <nom /> </etab> >>> </xf:instance> >>> >>> </xf:model> >>> </head> >>> <body> >>> >>> >>> <div id="divPage"> >>> <xf:group >>> ref="xxforms:instance('sessionInstance')/etab/nom[.!='New']"> >>> >>> <p>New? <xf:trigger> >>> <xf:label>new </xf:label> >>> >>> <xf:action ev:event="DOMActivate"> >>> <xf:setvalue >>> ref="xxforms:instance('sessionInstance')/etab/nom">New</xf:setvalue> >>> </xf:action> >>> </xf:trigger></p> >>> </xf:group> <xf:group >>> ref="xxforms:instance('sessionInstance')/etab/nom[.='New']"> >>> Sélection:<br /> >>> <br /> >>> <!-- --> >>> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" >>> dynamic-itemset="false"> >>> <xf:label>RNE:</xf:label> >>> <xf:itemset >>> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >>> <xf:label ref="rne" /> >>> <xf:value ref="rne" /> >>> </xf:itemset> >>> </fr:autocomplete> >>> >>> <!-- >>> <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" >>> appearance="minimal"> >>> <xf:label>RNE: </xf:label> >>> <xf:itemset >>> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >>> <xf:label ref="rne" /> >>> <xf:value ref="rne" /> >>> </xf:itemset> >>> </xf:select1> >>> --> >>> </xf:group></div> >>> >>> </body> >>> </html> >>> >>> >>> Fabien GUENEGO a écrit : >>> >>>> >>>> Hello, >>>> I change recently my Orbeon version and now, i have some troubles with >>>> the >>>> line-codes with "fr:autocomplete" >>>> >>>> I have the "Orbeon Forms dev-post-3.7.1.201004210047 CE" (what's the >>>> difference with the PE version?) and Tomcat version 6.0.26. I use >>>> Firefox >>>> version 3.5.9 >>>> >>>> An example: >>>> When I write : >>>> <xf:select1 ref="xxforms:instance('etablissementInstance')/rne" >>>> appearance="minimal" > >>>> <xf:label>RNE: </xf:label> >>>> <xf:itemset >>>> nodeset="xxforms:instance('listEtabInscritInstance')/etab"> >>>> <xf:label ref="rne" /> >>>> <xf:value ref="rne" /> >>>> </xf:itemset> >>>> </xf:select1> >>>> >>>> There is no problem, but when i write in the same place: >>>> >>>> <fr:autocomplete ref="xxforms:instance('etablissementInstance')/rne" >>>> dynamic-itemset="false"> >>>> <xf:label >RNE:</xf:label> >>>> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab" >>>> > >>>> <xf:label ref="rne" /> >>>> <xf:value ref="rne" /> >>>> </xf:itemset> >>>> </fr:autocomplete> I have an error page with "/[No error message >>>> provided.]" >>>> >>>> I don't know where is the problem... >>>> >>>> Any help? >>>> Fabien. >>>> / >>>> >>> >>> -- >>> 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |
We've been using the fr:autocomplete component against a local name authority and are very happy with it. I'd like to tune those interactions a bit though by not making more service submissions than are necessary. I don't know what the precise algorithm should be. I imagine it would be something like "don't do a submission until either you have at least N characters or the user has stopped typing." I suspect the "stopped typing" part of that test would involve some trickier than average event handling. Has this already been done? If not, where in the architecture would it best be achieved?
I didn't find anything in the archives but I was using the perhaps old fashioned 'debouncing' to look for this topic.:) Thanks, Bill Bill Parod Library Technology Division - Enterprise Systems Northwestern University Library 847 491 5368 -- 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 |
Administrator
|
Hi Bill,
You can certainly write your code so you only make a request after users have typed at least N characters. In fact, there is an example of this on the section linked below. See how the variable $make-suggestion is set and used. http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components#TOC-Dynamic-Itemset As for not calling the service at every key stroke, this is already happening. The autocomplete field uses in its implementation an incremental input filed (xforms:input incremental="true"). Since you wouldn't want an Ajax request at every request for incremental fields, it implements an algorithm where it waits for a certain time before sending key strokes to the server. By default this is set to half a second, and you can change it by setting the oxf.xforms.delay-before-incremental-request property in your properties-local.xml. Alternatively, you could implement this behavior in XForms. It sounds like a fun project to implement this in XForms (well, to me at least!), but this is the type of things that can be hard to get right, so setting oxf.xforms.delay-before-incremental-request to a higher value is probably a simpler solution. Alex On Fri, May 7, 2010 at 11:29 AM, Bill Parod <[hidden email]> wrote: > We've been using the fr:autocomplete component against a local name > authority and are very happy with it. I'd like to tune those interactions a > bit though by not making more service submissions than are necessary. I > don't know what the precise algorithm should be. I imagine it would be > something like "don't do a submission until either you have at least N > characters or the user has stopped typing." I suspect the "stopped typing" > part of that test would involve some trickier than average event > handling. Has this already been done? If not, where in the architecture > would it best be achieved? > I didn't find anything in the archives but I was using the perhaps old > fashioned 'debouncing' to look for this topic.:) > Thanks, > Bill > Bill Parod > > Library Technology Division - Enterprise Systems > Northwestern University Library > [hidden email] > 847 491 5368 > > > > > -- > 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My Twitter: http://twitter.com/avernet -- 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 |