Hello.
I'm upgrading from 3.6.0beta.200708070321 to orbeon-3.6.0.200712061930. When I initially moved to 3.6.0beta I needed to add a reload flag on my actions to stop xforms-value-change events from causing repeatedly reloading instance data (see http://www.nabble.com/Problems-upgrading-to-recent-snapshot-td12051152.html#a12052751). I now find that after upgrading to the release version of 3.6.0 my fix no longer works and I'm getting repeated reloads again. In investigating this problem I've arrived at a situation (demonstrated by the attached sandbox file) whereby I load two nearly identical files as instance data and set up a select on each which will cause them to reload when the select value changes. However in one case the reload works as expected but in the other it causes (what I assume to be) an infinite loop. The xml data files have been created by combining bbc new rss feeds and some of my own data. Any idea why two nearly identical files case such different responses? (P.S. I'm not even sure if this is anything to do with my problem of reloading instance data on xforms-value-changes). Many thanks, Chris. -- 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 infinite_loops_reading_data.xhtml (5K) Download Attachment |
Administrator
|
Chris,
On Jan 9, 2008 7:39 AM, Chris Bailey <[hidden email]> wrote: > In investigating this problem I've arrived at a situation (demonstrated by > the attached sandbox file) whereby I load two nearly identical files as > instance data and set up a select on each which will cause them to reload > when the select value changes. Adding an <xforms:refresh/> after the xforms:send, as in the attached file, solves your problem. But I don't think we shouldn't have to add this refresh, so I created a bug for this, with a reference to your example: http://forge.objectweb.org/tracker/index.php?func=detail&aid=308229&group_id=168&atid=350207 Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.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 infinite_loops_reading_data.xhtml (5K) Download Attachment |
Thanks Alex that does work (although I agree that I probably shouldn't need
to do this). However I was more concerned with why this is happening in my test case - if you view the two xml files that are loaded <http://www.ilrt.bris.ac.uk/~cmcpb/testok.xml> <http://www.ilrt.bris.ac.uk/~cmcpb/testbad.xml> You'll notice that they are identical except the 'good' xml file has an extra bit of xml in: ... <link>http://news.bbc.co.uk/go/rss/-/1/hi/sci/tech/7177181.stm</link> ... If there was any problem with loading of xml files I would assume that the smaller of the files would be the one that works not the larger. Can you give me any insight into why this would be? My guess is it must be something to do with the physical size of the xml file being loaded. Chris. --On 10 January 2008 17:03 -0800 Alessandro Vernet <[hidden email]> wrote: > Chris, > > On Jan 9, 2008 7:39 AM, Chris Bailey <[hidden email]> wrote: >> In investigating this problem I've arrived at a situation (demonstrated >> by the attached sandbox file) whereby I load two nearly identical files >> as instance data and set up a select on each which will cause them to >> reload when the select value changes. > > Adding an <xforms:refresh/> after the xforms:send, as in the attached > file, solves your problem. But I don't think we shouldn't have to add > this refresh, so I created a bug for this, with a reference to your > example: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=308229&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 OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Alessandro Vernet
Hi,
It seems that there is a problem with setting a focus on radio-button. Attached example is tested in XForms sandbox and everything works fine for input and combo box controls. However, from some reason, focus is not set on radio-button. Tnx, Nikola -- 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 setfocus.xhtml (2K) Download Attachment |
yes, we have detected this also!!!!!! any clue to solve it?
-- 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 Chris Bailey-2
Chris,
On Jan 11, 2008 3:24 AM, Chris Bailey <[hidden email]> wrote: > Thanks Alex that does work (although I agree that I probably shouldn't need > to do this). Excellent. > However I was more concerned with why this is happening in my test case - > if you view the two xml files that are loaded > <http://www.ilrt.bris.ac.uk/~cmcpb/testok.xml> > <http://www.ilrt.bris.ac.uk/~cmcpb/testbad.xml> I am not sure why this works in the testok.xml case. What should happen (and seems to happen in the testbad.xml case) is that after the <xforms:send submission="reloadBadTestdata"/> a refresh is "scheduled" to be done at the end of the action block. So then the <xforms:setvalue ref="instance('datachange')/dirty">true</xforms:setvalue> runs, and then the xforms-value-changed is dispatched, which (since dirty = true) runs the submission again. Hence the loop, which you can break by forcing the refresh to happen just after the submission. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.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 |
Administrator
|
In reply to this post by richhl
Richard, Nikola,
On Jan 11, 2008 3:48 AM, Richard C. Hidalgo Lorite <[hidden email]> wrote: > yes, we have detected this also!!!!!! any clue to solve it? The issue is now fixed. You can try this out in the next nightly build. For reference, this is the bug that Erik entered earlier for this one: http://forge.objectweb.org/tracker/index.php?func=detail&aid=308240&group_id=168&atid=350207 Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise http://www.orbeon.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 |
Thank you Alex.
----- Original Message ----- From: "Alessandro Vernet" <[hidden email]> To: <[hidden email]> Sent: Tuesday, January 15, 2008 4:32 AM Subject: Re: [ops-users] Problem with setting focus on radio-button > Richard, Nikola, > > On Jan 11, 2008 3:48 AM, Richard C. Hidalgo Lorite <[hidden email]> wrote: > > yes, we have detected this also!!!!!! any clue to solve it? > > The issue is now fixed. You can try this out in the next nightly > build. For reference, this is the bug that Erik entered earlier for > this one: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=308240&group_id =168&atid=350207 > > Alex > -- > Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise > http://www.orbeon.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 |
thx a lot!
-- 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 |