Hi, I found a problem in framework. The value I input in field is not updated in xml.
I created an exmaple to describe this. Please follow these steps to recreate this problem. test.zip Extract the zip file and put it under WEB-INF\resources\apps folder. Use /test/page to access the page. Steps: 1. Click "Search" button. It will submit the instance "request" and replace the "response" instance. You will see "this is a test" message on page. 2. Click "Add" button. It will insert a template instance into "response" instance. You will see 5 input fields. 3. Input values in 5 fields, you can see all values are updated in xml via instance inspector. 4. Click "Search" button again. The "response" instance will be replaced. 5. Click "Add" button. 6. Input values in 5 columns very quickly. (I use my left hand to click keys continuously, use right hand to move the mouse and click into the next field). You will see the some values are not updated in xml instance "response". This doesn't happen every time. You can try it serveral times. To summarize, you do a submission on page and get a instance back, then insert a element in the result instance. Do a submitssion again and insert again. The xforms:input on the inserted element are not binded sometime. Anyone can help to check this problem? The version I am using is Orbeon Forms Release 3.7.0beta1.200808240812 Thanks, James |
Hi, James!
I tried all steps for 10 times, and every time xml was updates. Maybe, you can try adding incremental="true" attribute to all input fields. On Wed, Mar 18, 2009 at 12:05 PM, JamesGu <[hidden email]> wrote:
-- 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 |
Raitis,
Thank you for you suggestion! I tried incremental="true" but it doesn't work. Today I downloaded Orbeon Forms 3.7 beta 1 build and added my test example. The same error happened, both in IE 7 and Firefox 3. See the attached image file. Steps: 1. Click "Search" button. 2. Click "Add" button. 3. Input data in all 5 fields very quickly. First time: do steps 1,2,3. The data is udpated in xml. The second time: Don't refresh the page, do 1,2,3 again. Sometimes the data is not updated in xml. If it doesn't happend. Try 1,2,3 again. Remember you must input data in all 5 fields very quickly. Most time it happens within 5 tries. This error is our product, so it 's very important for me. I would be appreciated if you could try it for another time. Thanks, James error.JPG |
James,
I tried it again, and I can agree, sometimes xml data was no updated. How do you need to operate with that data? On Thu, Mar 19, 2009 at 8:29 AM, JamesGu <[hidden email]> wrote:
-- 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 |
Raitis,
Thank you for your effort! There is a logic in my application. User can query the data, add some new records on the page. But now, some time the data they inputed is not sent to server, which cause errors. Could you please find out why this happens? Is there anyway that I can avoid this? It would be great if you could fix this in Orbeon Forms 3.7 beta 1. Thanks, James |
Raitis,
Excuse me. I am still waiting for your response. Could you help us on this problem? Any suggestion will be appreciated. Thanks, James |
Hi, James,
I tried some xforms tricks, none helped.. the only solution probably is some JS script, which on submit recheck fields.. or some kind of it.. On Thu, Mar 26, 2009 at 11:11 AM, JamesGu <[hidden email]> wrote:
-- 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 James Gu
James,
I was able to reproduce this quite easily when I tried right after you posted this message (a month an half ago), but I am not able to reproduce it anymore with the latest code. Since then, we improved and fixed a number of small issues with the value controls are updated. When you get a chance, could you try this again on your side with a recent nightly build (or the 3.7.1 release) and check that the problem has indeed been resolved? Alex |
Alex,
Thank you for the update! I tried it in recent nightly build and the 3.7.1 release. The problem still exists. Please repeat steps 4,5,6 for several times to reproduce this error. Steps: 1. Click "Search" button. It will submit the instance "request" and replace the "response" instance. You will see "this is a test" message on page. 2. Click "Add" button. It will insert a template instance into "response" instance. You will see 5 input fields. 3. Input values in 5 fields, you can see all values are updated in xml via instance inspector. 4. Click "Search" button again. The "response" instance will be replaced. 5. Click "Add" button. 6. Input values in 5 columns very quickly. (I use my left hand to click keys continuously, use right hand to move the mouse and click into the next field). You will see that some values are not updated in xml instance "response". This doesn't happen every time. You can try it serveral times. Thanks, James |
Administrator
|
James,
I tried again, maybe 20 times, but never had the problem. Sometimes I went super-fast, sometimes a bit slower. Could you record a video of what you are doing? Maybe that will give me an idea of what I should do to reproduce this. (If you don't already have a tool for this, you can try http://www.jingproject.com/ which is free, works pretty well, and is available on Mac and Windows.) Alex |
test3.zip
I recorded a video. Please check it. I used the version Orbeon Forms Release dev-post-3.7.1.200906020154. URL: /test/page |
Administrator
|
James,
Thank you for the video! And finally, I was able to reproduce this one. It happens when enter a value in a field (say "a"), delete the repeat iteration, add it again, and type the same value "a". At that point the JavaScript code incorrectly thinks that the server already knows the value is "a" and doesn't resend the new value to the server. This is a case that in handled in general, but there was a bug that showed up when the XForms element was directly under the <xforms:repeat>. I fixed this, and committed the code; it will be in the next nightly build. You'll let me know how it works for you! For reference, the bug is: http://forge.ow2.org/tracker/index.php?func=detail&aid=313886&group_id=168&atid=350207 Alex |
Free forum by Nabble | Edit this page |