Erik, Alex,
I know that several posts have been made on this subject and perhaps this mail is about an already identified bug. Here is a very simple sample that shows that a repeat list of items is not correctly refresh when the instance change. 1. Click one link on the left. The first link shows one input The second link shows two inputs The third link shows three inputs 2. After playing with these three links(1,2,3,1,2...), the list of input is incorrect. At the bottom there is the instance bound. I have have the same result in the XForms Sandbox. -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws view.xhtml (9K) Download Attachment |
Administrator
|
Marc,
What's happening is even easier to reproduce: o Click on the 3rd link o Click on the 1st link o See that you now have two rows But this I think is due to the fact that only only delete one row with xforms:delete when going from 3 to 1. xforms:delete only deletes one node (or none), and xforms:insert always inserts one node (or none). You probably have to use @while to repeat those actions to delete and insert the correct number of nodes. I have already proposed to the XForms Working Group changing these two actions to allow deleting and inserting multiple nodes. -Erik marc wrote: > Erik, Alex, > > I know that several posts have been made on this subject and perhaps > this mail is about an already identified bug. > > Here is a very simple sample that shows that a repeat list of items is > not correctly refresh when the instance change. > > 1. Click one link on the left. > The first link shows one input > The second link shows two inputs > The third link shows three inputs > > 2. After playing with these three links(1,2,3,1,2...), the list of input > is incorrect. > > At the bottom there is the instance bound. > > I have have the same result in the XForms Sandbox. Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
I'm not sur that the problem is about the insert/delete. The example shows now the instance displayed on the right. And the insert/delete seems to work since I'm just deleting one node (and its childrens). Am I missing something ? -- Marc Erik Bruchez a écrit : > Marc, > > What's happening is even easier to reproduce: > > o Click on the 3rd link > o Click on the 1st link > o See that you now have two rows > > But this I think is due to the fact that only only delete one row with > xforms:delete when going from 3 to 1. > > xforms:delete only deletes one node (or none), and xforms:insert > always inserts one node (or none). You probably have to use @while to > repeat those actions to delete and insert the correct number of nodes. > > I have already proposed to the XForms Working Group changing these two > actions to allow deleting and inserting multiple nodes. > > -Erik > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws view.xhtml (9K) Download Attachment |
Administrator
|
Marc,
The problem might be with the action: <xforms:delete nodeset="instance('selectedZone')/*" /> Most likely you expect this to delete all the node under the root element of 'vselectedZone'. Instead, this only deletes the last one, as specified in XForms 1.1. http://www.w3.org/TR/xforms11/#delete-action Alex On 10/26/06, marc <[hidden email]> wrote: > Erik, > > I'm not sur that the problem is about the insert/delete. > > The example shows now the instance displayed on the right. And the > insert/delete seems to work since I'm just deleting one node (and its > childrens). > > Am I missing something ? > > -- > Marc > > > Erik Bruchez a écrit : > > > Marc, > > > > What's happening is even easier to reproduce: > > > > o Click on the 3rd link > > o Click on the 1st link > > o See that you now have two rows > > > > But this I think is due to the fact that only only delete one row with > > xforms:delete when going from 3 to 1. > > > > xforms:delete only deletes one node (or none), and xforms:insert > > always inserts one node (or none). You probably have to use @while to > > repeat those actions to delete and insert the correct number of nodes. > > > > I have already proposed to the XForms Working Group changing these two > > actions to allow deleting and inserting multiple nodes. > > > > -Erik > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Erik, Alex,
To avoid problems with insert and delete, I've changed my sample. Instead of playing with insert/delete, I'm using xforms:group to show the current selected node of my main instance. Unfortunately, the problem remains. -- Marc Alessandro Vernet a écrit : > Marc, > > The problem might be with the action: > > <xforms:delete nodeset="instance('selectedZone')/*" /> > > Most likely you expect this to delete all the node under the root > element of 'vselectedZone'. Instead, this only deletes the last one, > as specified in XForms 1.1. > > http://www.w3.org/TR/xforms11/#delete-action -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws view.xhtml (8K) Download Attachment |
Administrator
|
Hi Marc,
Very nice test case! The problem was happening when you had multiple levels of repeats that are directly nested. This is fixed now. http://forge.objectweb.org/tracker/index.php?func=detail&aid=306370&group_id=168&atid=350207 Alex On 11/7/06, marc <[hidden email]> wrote: > Erik, Alex, > > To avoid problems with insert and delete, I've changed my sample. > > Instead of playing with insert/delete, I'm using xforms:group to > show the current selected node of my main instance. > > Unfortunately, the problem remains. > > -- > Marc > > > Alessandro Vernet a écrit : > > > Marc, > > > > The problem might be with the action: > > > > <xforms:delete nodeset="instance('selectedZone')/*" /> > > > > Most likely you expect this to delete all the node under the root > > element of 'vselectedZone'. Instead, this only deletes the last one, > > as specified in XForms 1.1. > > > > http://www.w3.org/TR/xforms11/#delete-action > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
Many thanks for that. It works. I've modified my test case to add dynamic behaviour. There are 2 triggers to 'add' or 'delete' group of fields. Playing with these triggers make the page hang. -- Marc Alessandro Vernet a écrit : > Hi Marc, > > Very nice test case! The problem was happening when you had multiple > levels of repeats that are directly nested. This is fixed now. > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306370&group_id=168&atid=350207 > > > Alex > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws viewDyn.xhtml (10K) Download Attachment |
Administrator
|
Hi Marc,
OK, another bug with directly nested repeats. Those are not easy to find and fix, since you have a nice test case for this one too, I took the time to fix it. http://forge.objectweb.org/tracker/index.php?func=detail&aid=306381&group_id=168&atid=350207 The fix will be in the next build. I hope this is the last one with directly nested repeats :). Alex On 11/9/06, marc <[hidden email]> wrote: > Alex, > > Many thanks for that. It works. > > I've modified my test case to add dynamic behaviour. > There are 2 triggers to 'add' or 'delete' group of fields. > > Playing with these triggers make the page hang. > > -- > Marc > > Alessandro Vernet a écrit : > > > Hi Marc, > > > > Very nice test case! The problem was happening when you had multiple > > levels of repeats that are directly nested. This is fixed now. > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306370&group_id=168&atid=350207 > > > > > > Alex > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
The correction you've made works. But now I'm adding an autocompete control. And... you can see the result in the file attached. BTW, You can launch this file directly in Firefox (mine is 1.5.0.8). -- Marc Alessandro Vernet a écrit : > Hi Marc, > > OK, another bug with directly nested repeats. Those are not easy to > find and fix, since you have a nice test case for this one too, I took > the time to fix it. > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306381&group_id=168&atid=350207 > > > The fix will be in the next build. I hope this is the last one with > directly nested repeats :). > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws viewDyn.xhtml (11K) Download Attachment |
Administrator
|
Hi Marc,
The auto-complete field did not work in <xforms:repeat>. This is now fixed. http://forge.objectweb.org/tracker/index.php?func=detail&aid=306390&group_id=168&atid=350207 Alex On 11/10/06, marc <[hidden email]> wrote: > Alex, > > The correction you've made works. But now I'm adding an autocompete control. > And... you can see the result in the file attached. > > BTW, You can launch this file directly in Firefox (mine is 1.5.0.8). > > -- > Marc > > Alessandro Vernet a écrit : > > > Hi Marc, > > > > OK, another bug with directly nested repeats. Those are not easy to > > find and fix, since you have a nice test case for this one too, I took > > the time to fix it. > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306381&group_id=168&atid=350207 > > > > > > The fix will be in the next build. I hope this is the last one with > > directly nested repeats :). > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Alex,
Thanks for these fixes. It works fine. I think that all the issues I have identified with nested repeat are now fixed. ;-) Keep Orbeon Forms this way ! -- Marc Alessandro Vernet a écrit : > Hi Marc, > > The auto-complete field did not work in <xforms:repeat>. This is now > fixed. > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306390&group_id=168&atid=350207 > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Marc,
Well, thank you for all the thorough bug reports and the accompanying sand-alone examples. We rarely directly nest repeats, and directly nested repeat post all kind of problems challenges for our JavaScript code. With your help, it is now in much better shape! Alex On 11/14/06, marc <[hidden email]> wrote: > Alex, > > Thanks for these fixes. It works fine. > I think that all the issues I have identified with nested repeat are now > fixed. ;-) > > Keep Orbeon Forms this way ! > > -- > Marc > > Alessandro Vernet a écrit : > > > Hi Marc, > > > > The auto-complete field did not work in <xforms:repeat>. This is now > > fixed. > > > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=306390&group_id=168&atid=350207 > > > > > > > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |