Administrator
|
Alex,
If the error also occurs with Firefox, then you have pretty good debugging tools, like the Firebug extension. If it only occurs with IE, then we have to ask Alex (Vernet) to see what's the best tool to use. I assume you are using a recent build. Can you easily reproduce the problem with a simple example? -Erik Alexander Zatko wrote: > Anybody have seen this error (attached screenshot)? > > > ------------------------------------------------------------------------ > > > I see this on a page when making selections in 2 linked select1 > controls. The nodeset for one is populated dynamically from an instance > fetched via submission (replace="instance") triggered by value-changed > even on the other select1. Basically I am making a selection of a > specific branch in the first select1 control and a back-end process > returns the branch children nodes which are used to populate the 2nd > select1. > > I am probably not offering much info here, but maybe there is somebody > who can give me pointers with the info I have. > > Another question - which file is the error referring to? How do I debug > these kinds of errors? > > Thanks > > A. Orbeon Forms - Web Forms for the Enterprise Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
I tested this functionality in IE (Windows) initially where I detected it. Then I tested in Firefox, Opera and Safari (Mac) where the error does not occur. I found out that practically in every browser the same sequence of actions produces slightly different behavior. For example the default value of the 2nd select1 after the instance is replaced is different in different browsers. Another problem I am seeing is that clicking on an item in that control does not always set the value of the node the control is referring to, albeit the item in the drop-down is highlighted. Producing a file for you to play with will be a challenge as I have a back-end processes replacing the instance. It would have to be a mini- application that I would send to you - a stand-alone XHTML for sandbox will probably not work (unless I am unaware about a way to do it in a simpler way). Do you want me to prepare such an app? A. On Jan 8, 2007, at 9:35 PM, Erik Bruchez wrote: > Alex, > > If the error also occurs with Firefox, then you have pretty good > debugging tools, like the Firebug extension. If it only occurs with > IE, then we have to ask Alex (Vernet) to see what's the best tool > to use. > > I assume you are using a recent build. Can you easily reproduce the > problem with a simple example? > > -Erik > > Alexander Zatko wrote: >> Anybody have seen this error (attached screenshot)? >> --------------------------------------------------------------------- >> --- >> I see this on a page when making selections in 2 linked select1 >> controls. The nodeset for one is populated dynamically from an >> instance fetched via submission (replace="instance") triggered by >> value-changed even on the other select1. Basically I am making a >> selection of a specific branch in the first select1 control and a >> back-end process returns the branch children nodes which are used >> to populate the 2nd select1. >> I am probably not offering much info here, but maybe there is >> somebody who can give me pointers with the info I have. >> Another question - which file is the error referring to? How do I >> debug these kinds of errors? >> Thanks >> A. > > -- > Orbeon Forms - Web Forms for the Enterprise Done the Right Way > http://www.orbeon.com/ > > > -- > You receive this message as a subscriber of the ops- > [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 -- 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
|
Alex,
On 1/8/07, Alexander Zatko <[hidden email]> wrote: > I tested this functionality in IE (Windows) initially where I > detected it. I am not sure how familiar you are with JavaScript development, but if the error only happens on IE, you might want to install the Microsoft Script Debugger. It is a free tool, and you get it from the page linked below. After you install the Script Debugger, when an error occurs, you will be able to start the debugger, and see precisely where the error is. Gathering this information will already be useful. http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en Also, I understand you need to call services. If you can get away with those services just always returning the same result, you can "implement" the services by putting that static result as a static XML file on some public Web server. GeoCities works quite well for this :). Then you can have a single XHTML+XForms file that calls those services, and runs in the XForms sandbox. Alex -- 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 |
Hi Alex,
I will try to use the debugger - my JS knowledge is very rudimentary, but I will see how far can I get. The app does not use web services - it uses the replace instance mechanism to refresh the instance containing the data the user is selecting in the select controls. Due to the size of the navigated tree I can not load it when I first display the page, so I am populating coupe of select controls interactively. I created a simplified version of the app and installed it to my server (see the URL in the steps to reproduce below). I would be happy to send also simplified code that can be easily installed. 2) click the role2 in the Select 1 select control. (The selection should be shown in the brackets next to the control label. If viewed in Firefox, simple clicking the item in the control will not assign value of the clicked item into the referenced node - click the focuser item first. This is the case for Firefox in all select controls - at least on the Mac platform). 3) click the Add button 4) click role1 in the Select 2 control. Make sure the node gets set (again - this is a concern on Firefox primarily) 5) click the PATRMV item in the Select 3 control 6) click the role2 item in the Select 4 select control. Every time an item is clicked in this control the app is doing instance-replace. At this point a JS error should be shown in IE. In some versions just the Loading... message is shown and does not go away which prevents other functionality of the app. If - in step 4 - you follow this sequence instead: a) click role2 n the Select 2 then b) click the PATRMV item in the Select 3 then c) click the role1 item in the Select 4 ...the error does not show. Thanks. A. On Jan 9, 2007, at 8:26 PM, Alessandro Vernet 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Alex,
I have tried to reproduce the steps above. Everything went fine until step 6. At that point, I don't have a select4 on my screen. I only have select 1, 2, 3, and 5 (see attached screenshot). Alex On 1/9/07, Alexander Zatko <[hidden email]> wrote: > Hi Alex, > > I will try to use the debugger - my JS knowledge is very rudimentary, but I > will see how far can I get. > > The app does not use web services - it uses the replace instance mechanism > to refresh the instance containing the data the user is selecting in the > select controls. Due to the size of the navigated tree I can not load it > when I first display the page, so I am populating coupe of select controls > interactively. > > I created a simplified version of the app and installed it to my server (see > the URL in the steps to reproduce below). I would be happy to send also > simplified code that can be easily installed. > > Steps to reproduce the problem - only IE on Windows shows the JavaScript > issue. The problem with referenced node value not being set when an item is > clicked when viewed in Firefox can be seen on this app as well. Please note > that even when the page is first time loaded IE throws a bunch of errors > (not the case for Firefox). This is not happening when running the app > stand-alone and can be ignored (so it seems). > > 1) open http://tamburine.printfast.net:8081/ops/test/home > 2) click the role2 in the Select 1 select control. (The selection should be > shown in the brackets next to the control label. If viewed in Firefox, > simple clicking the item in the control will not assign value of the clicked > item into the referenced node - click the focuser item first. This is the > case for Firefox in all select controls - at least on the Mac platform). > 3) click the Add button > 4) click role1 in the Select 2 control. Make sure the node gets set > (again - this is a concern on Firefox primarily) > 5) click the PATRMV item in the Select 3 control > 6) click the role2 item in the Select 4 select control. Every time an > item is clicked in this control the app is doing instance-replace. At this > point a JS error should be shown in IE. In some versions just the Loading... > message is shown and does not go away which prevents other functionality of > the app. > > If - in step 4 - you follow this sequence instead: > > a) click role2 n the Select 2 then > b) click the PATRMV item in the Select 3 then > c) click the role1 item in the Select 4 > > ...the error does not show. > > Thanks. > > A. > > > On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: > > Alex, > > On 1/8/07, Alexander Zatko <[hidden email]> wrote: > I tested this functionality in IE (Windows) initially where I > detected it. > > I am not sure how familiar you are with JavaScript development, but if > the error only happens on IE, you might want to install the Microsoft > Script Debugger. It is a free tool, and you get it from the page > linked below. After you install the Script Debugger, when an error > occurs, you will be able to start the debugger, and see precisely > where the error is. Gathering this information will already be useful. > > http://www.microsoft.com/downloads/details.aspx?FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en > > Also, I understand you need to call services. If you can get away with > those services just always returning the same result, you can > "implement" the services by putting that static result as a static XML > file on some public Web server. GeoCities works quite well for this > :). Then you can have a single XHTML+XForms file that calls those > services, and runs in the XForms sandbox. > > Alex > -- > 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 > > > -- > 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 > > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws alex.png (16K) Download Attachment |
Hi Alex,
Right - I made a mistake in describing the steps. The 6th step should read: 6) click the role2 item in the Select 2 select control. I found out that this error can be reproduced reliably on IE6 only. I thought I saw it also in IE7, but I just tested it again and the form seems to work fine. Maybe MS updated the IE since I put up the test. A. On Jan 30, 2007, at 3:42 AM, Alessandro Vernet wrote: > Hi Alex, > > I have tried to reproduce the steps above. Everything went fine until > step 6. At that point, I don't have a select4 on my screen. I only > have select 1, 2, 3, and 5 (see attached screenshot). > > Alex > > On 1/9/07, Alexander Zatko <[hidden email]> wrote: >> Hi Alex, >> >> I will try to use the debugger - my JS knowledge is very >> rudimentary, but I >> will see how far can I get. >> >> The app does not use web services - it uses the replace instance >> mechanism >> to refresh the instance containing the data the user is selecting >> in the >> select controls. Due to the size of the navigated tree I can not >> load it >> when I first display the page, so I am populating coupe of select >> controls >> interactively. >> >> I created a simplified version of the app and installed it to my >> server (see >> the URL in the steps to reproduce below). I would be happy to send >> also >> simplified code that can be easily installed. >> >> Steps to reproduce the problem - only IE on Windows shows the >> JavaScript >> issue. The problem with referenced node value not being set when >> an item is >> clicked when viewed in Firefox can be seen on this app as well. >> Please note >> that even when the page is first time loaded IE throws a bunch of >> errors >> (not the case for Firefox). This is not happening when running the >> app >> stand-alone and can be ignored (so it seems). >> >> 1) open http://tamburine.printfast.net:8081/ops/test/home >> 2) click the role2 in the Select 1 select control. (The selection >> should be >> shown in the brackets next to the control label. If viewed in >> Firefox, >> simple clicking the item in the control will not assign value of >> the clicked >> item into the referenced node - click the focuser item first. This >> is the >> case for Firefox in all select controls - at least on the Mac >> platform). >> 3) click the Add button >> 4) click role1 in the Select 2 control. Make sure the node gets >> set >> (again - this is a concern on Firefox primarily) >> 5) click the PATRMV item in the Select 3 control >> 6) click the role2 item in the Select 4 select control. Every >> time an >> item is clicked in this control the app is doing instance-replace. >> At this >> point a JS error should be shown in IE. In some versions just the >> Loading... >> message is shown and does not go away which prevents other >> functionality of >> the app. >> >> If - in step 4 - you follow this sequence instead: >> >> a) click role2 n the Select 2 then >> b) click the PATRMV item in the Select 3 then >> c) click the role1 item in the Select 4 >> >> ...the error does not show. >> >> Thanks. >> >> A. >> >> >> On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: >> >> Alex, >> >> On 1/8/07, Alexander Zatko <[hidden email]> wrote: >> I tested this functionality in IE (Windows) initially where I >> detected it. >> >> I am not sure how familiar you are with JavaScript development, >> but if >> the error only happens on IE, you might want to install the Microsoft >> Script Debugger. It is a free tool, and you get it from the page >> linked below. After you install the Script Debugger, when an error >> occurs, you will be able to start the debugger, and see precisely >> where the error is. Gathering this information will already be >> useful. >> >> http://www.microsoft.com/downloads/details.aspx? >> FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en >> >> Also, I understand you need to call services. If you can get away >> with >> those services just always returning the same result, you can >> "implement" the services by putting that static result as a static >> XML >> file on some public Web server. GeoCities works quite well for this >> :). Then you can have a single XHTML+XForms file that calls those >> services, and runs in the XForms sandbox. >> >> Alex >> -- >> Blog (XML, Web apps, Open Source): >> http://www.orbeon.com/blog/ >> >> >> -- >> You receive this message as a subscriber of the ops- >> [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 >> >> >> -- >> You receive this message as a subscriber of the ops- >> [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 >> >> >> > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > http://www.orbeon.com/ > <alex.png> > > -- > You receive this message as a subscriber of the ops- > [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 -- 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
|
Hi Alex,
OK, I can reproduce the issue now. This should just work with static instance, shouldn't it? Would you be make this example run the XForms sandbox, so I can run and debug it locally? Alex On 1/29/07, Alexander Zatko <[hidden email]> wrote: > Hi Alex, > > Right - I made a mistake in describing the steps. The 6th step should > read: > > 6) click the role2 item in the Select 2 select control. > > I found out that this error can be reproduced reliably on IE6 only. I > thought I saw it also in IE7, but I just tested it again and the form > seems to work fine. Maybe MS updated the IE since I put up the test. > > A. > > > On Jan 30, 2007, at 3:42 AM, Alessandro Vernet wrote: > > > Hi Alex, > > > > I have tried to reproduce the steps above. Everything went fine until > > step 6. At that point, I don't have a select4 on my screen. I only > > have select 1, 2, 3, and 5 (see attached screenshot). > > > > Alex > > > > On 1/9/07, Alexander Zatko <[hidden email]> wrote: > >> Hi Alex, > >> > >> I will try to use the debugger - my JS knowledge is very > >> rudimentary, but I > >> will see how far can I get. > >> > >> The app does not use web services - it uses the replace instance > >> mechanism > >> to refresh the instance containing the data the user is selecting > >> in the > >> select controls. Due to the size of the navigated tree I can not > >> load it > >> when I first display the page, so I am populating coupe of select > >> controls > >> interactively. > >> > >> I created a simplified version of the app and installed it to my > >> server (see > >> the URL in the steps to reproduce below). I would be happy to send > >> also > >> simplified code that can be easily installed. > >> > >> Steps to reproduce the problem - only IE on Windows shows the > >> JavaScript > >> issue. The problem with referenced node value not being set when > >> an item is > >> clicked when viewed in Firefox can be seen on this app as well. > >> Please note > >> that even when the page is first time loaded IE throws a bunch of > >> errors > >> (not the case for Firefox). This is not happening when running the > >> app > >> stand-alone and can be ignored (so it seems). > >> > >> 1) open http://tamburine.printfast.net:8081/ops/test/home > >> 2) click the role2 in the Select 1 select control. (The selection > >> should be > >> shown in the brackets next to the control label. If viewed in > >> Firefox, > >> simple clicking the item in the control will not assign value of > >> the clicked > >> item into the referenced node - click the focuser item first. This > >> is the > >> case for Firefox in all select controls - at least on the Mac > >> platform). > >> 3) click the Add button > >> 4) click role1 in the Select 2 control. Make sure the node gets > >> set > >> (again - this is a concern on Firefox primarily) > >> 5) click the PATRMV item in the Select 3 control > >> 6) click the role2 item in the Select 4 select control. Every > >> time an > >> item is clicked in this control the app is doing instance-replace. > >> At this > >> point a JS error should be shown in IE. In some versions just the > >> Loading... > >> message is shown and does not go away which prevents other > >> functionality of > >> the app. > >> > >> If - in step 4 - you follow this sequence instead: > >> > >> a) click role2 n the Select 2 then > >> b) click the PATRMV item in the Select 3 then > >> c) click the role1 item in the Select 4 > >> > >> ...the error does not show. > >> > >> Thanks. > >> > >> A. > >> > >> > >> On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: > >> > >> Alex, > >> > >> On 1/8/07, Alexander Zatko <[hidden email]> wrote: > >> I tested this functionality in IE (Windows) initially where I > >> detected it. > >> > >> I am not sure how familiar you are with JavaScript development, > >> but if > >> the error only happens on IE, you might want to install the Microsoft > >> Script Debugger. It is a free tool, and you get it from the page > >> linked below. After you install the Script Debugger, when an error > >> occurs, you will be able to start the debugger, and see precisely > >> where the error is. Gathering this information will already be > >> useful. > >> > >> http://www.microsoft.com/downloads/details.aspx? > >> FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en > >> > >> Also, I understand you need to call services. If you can get away > >> with > >> those services just always returning the same result, you can > >> "implement" the services by putting that static result as a static > >> XML > >> file on some public Web server. GeoCities works quite well for this > >> :). Then you can have a single XHTML+XForms file that calls those > >> services, and runs in the XForms sandbox. > >> > >> Alex > >> -- > >> Blog (XML, Web apps, Open Source): > >> http://www.orbeon.com/blog/ > >> > >> > >> -- > >> You receive this message as a subscriber of the ops- > >> [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 > >> > >> > >> -- > >> You receive this message as a subscriber of the ops- > >> [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 > >> > >> > >> > > > > > > -- > > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > > http://www.orbeon.com/ > > <alex.png> > > > > -- > > You receive this message as a subscriber of the ops- > > [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 > > > > > > -- > 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 > > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alex,
I don't think this will work with a static instance - the error occurs when a value-changed event triggers a @replace="instance" submission. But I think the example is quite concise and should be easily deployable for testing on your machine. A. On Jan 31, 2007, at 3:47 AM, Alessandro Vernet wrote: > Hi Alex, > > OK, I can reproduce the issue now. This should just work with static > instance, shouldn't it? Would you be make this example run the XForms > sandbox, so I can run and debug it locally? > > Alex > > On 1/29/07, Alexander Zatko <[hidden email]> wrote: >> Hi Alex, >> >> Right - I made a mistake in describing the steps. The 6th step should >> read: >> >> 6) click the role2 item in the Select 2 select control. >> >> I found out that this error can be reproduced reliably on IE6 only. I >> thought I saw it also in IE7, but I just tested it again and the form >> seems to work fine. Maybe MS updated the IE since I put up the test. >> >> A. >> >> >> On Jan 30, 2007, at 3:42 AM, Alessandro Vernet wrote: >> >> > Hi Alex, >> > >> > I have tried to reproduce the steps above. Everything went fine >> until >> > step 6. At that point, I don't have a select4 on my screen. I only >> > have select 1, 2, 3, and 5 (see attached screenshot). >> > >> > Alex >> > >> > On 1/9/07, Alexander Zatko <[hidden email]> wrote: >> >> Hi Alex, >> >> >> >> I will try to use the debugger - my JS knowledge is very >> >> rudimentary, but I >> >> will see how far can I get. >> >> >> >> The app does not use web services - it uses the replace instance >> >> mechanism >> >> to refresh the instance containing the data the user is selecting >> >> in the >> >> select controls. Due to the size of the navigated tree I can not >> >> load it >> >> when I first display the page, so I am populating coupe of select >> >> controls >> >> interactively. >> >> >> >> I created a simplified version of the app and installed it to my >> >> server (see >> >> the URL in the steps to reproduce below). I would be happy to send >> >> also >> >> simplified code that can be easily installed. >> >> >> >> Steps to reproduce the problem - only IE on Windows shows the >> >> JavaScript >> >> issue. The problem with referenced node value not being set when >> >> an item is >> >> clicked when viewed in Firefox can be seen on this app as well. >> >> Please note >> >> that even when the page is first time loaded IE throws a bunch of >> >> errors >> >> (not the case for Firefox). This is not happening when running the >> >> app >> >> stand-alone and can be ignored (so it seems). >> >> >> >> 1) open http://tamburine.printfast.net:8081/ops/test/home >> >> 2) click the role2 in the Select 1 select control. (The selection >> >> should be >> >> shown in the brackets next to the control label. If viewed in >> >> Firefox, >> >> simple clicking the item in the control will not assign value of >> >> the clicked >> >> item into the referenced node - click the focuser item first. This >> >> is the >> >> case for Firefox in all select controls - at least on the Mac >> >> platform). >> >> 3) click the Add button >> >> 4) click role1 in the Select 2 control. Make sure the node gets >> >> set >> >> (again - this is a concern on Firefox primarily) >> >> 5) click the PATRMV item in the Select 3 control >> >> 6) click the role2 item in the Select 4 select control. Every >> >> time an >> >> item is clicked in this control the app is doing instance-replace. >> >> At this >> >> point a JS error should be shown in IE. In some versions just the >> >> Loading... >> >> message is shown and does not go away which prevents other >> >> functionality of >> >> the app. >> >> >> >> If - in step 4 - you follow this sequence instead: >> >> >> >> a) click role2 n the Select 2 then >> >> b) click the PATRMV item in the Select 3 then >> >> c) click the role1 item in the Select 4 >> >> >> >> ...the error does not show. >> >> >> >> Thanks. >> >> >> >> A. >> >> >> >> >> >> On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: >> >> >> >> Alex, >> >> >> >> On 1/8/07, Alexander Zatko <[hidden email]> wrote: >> >> I tested this functionality in IE (Windows) initially where I >> >> detected it. >> >> >> >> I am not sure how familiar you are with JavaScript development, >> >> but if >> >> the error only happens on IE, you might want to install the >> Microsoft >> >> Script Debugger. It is a free tool, and you get it from the page >> >> linked below. After you install the Script Debugger, when an error >> >> occurs, you will be able to start the debugger, and see precisely >> >> where the error is. Gathering this information will already be >> >> useful. >> >> >> >> http://www.microsoft.com/downloads/details.aspx? >> >> FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en >> >> >> >> Also, I understand you need to call services. If you can get away >> >> with >> >> those services just always returning the same result, you can >> >> "implement" the services by putting that static result as a static >> >> XML >> >> file on some public Web server. GeoCities works quite well for >> this >> >> :). Then you can have a single XHTML+XForms file that calls those >> >> services, and runs in the XForms sandbox. >> >> >> >> Alex >> >> -- >> >> Blog (XML, Web apps, Open Source): >> >> http://www.orbeon.com/blog/ >> >> >> >> >> >> -- >> >> You receive this message as a subscriber of the ops- >> >> [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 >> >> >> >> >> >> -- >> >> You receive this message as a subscriber of the ops- >> >> [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 >> >> >> >> >> >> >> > >> > >> > -- >> > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way >> > http://www.orbeon.com/ >> > <alex.png> >> > >> > -- >> > You receive this message as a subscriber of the ops- >> > [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 >> >> >> >> >> >> -- >> You receive this message as a subscriber of the ops- >> [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 >> >> >> > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > http://www.orbeon.com/ > > > -- > You receive this message as a subscriber of the ops- > [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 -- 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 |
In reply to this post by Alessandro Vernet
Hello,
I am getting empty response when using simple GET submission to some external link when: 1) in config optimizations are OFF. E.g. <property as="xs:boolean" name="oxf.xforms.optimize-post-all" value="false"/> <property as="xs:boolean" name="oxf.xforms.optimize-get-all" value="false"/> <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" value="false"/> 2) and some non-default @separator is defined e.g. <xforms:submission method="get" replace="all" id="generate" ref="instance('params')" separator="&" action="http://google.com"/> Is this a known bug in OF? -peter -- 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
|
In reply to this post by Alexander Žaťko
Alex,
That works. If you can attach to your response the few files I need to reproduce this, I will have certainly have a look at it. Alex On 1/30/07, Alexander Zatko <[hidden email]> wrote: > Alex, > > I don't think this will work with a static instance - the error > occurs when a value-changed event triggers a @replace="instance" > submission. But I think the example is quite concise and should be > easily deployable for testing on your machine. > > A. > > On Jan 31, 2007, at 3:47 AM, Alessandro Vernet wrote: > > > Hi Alex, > > > > OK, I can reproduce the issue now. This should just work with static > > instance, shouldn't it? Would you be make this example run the XForms > > sandbox, so I can run and debug it locally? > > > > Alex > > > > On 1/29/07, Alexander Zatko <[hidden email]> wrote: > >> Hi Alex, > >> > >> Right - I made a mistake in describing the steps. The 6th step should > >> read: > >> > >> 6) click the role2 item in the Select 2 select control. > >> > >> I found out that this error can be reproduced reliably on IE6 only. I > >> thought I saw it also in IE7, but I just tested it again and the form > >> seems to work fine. Maybe MS updated the IE since I put up the test. > >> > >> A. > >> > >> > >> On Jan 30, 2007, at 3:42 AM, Alessandro Vernet wrote: > >> > >> > Hi Alex, > >> > > >> > I have tried to reproduce the steps above. Everything went fine > >> until > >> > step 6. At that point, I don't have a select4 on my screen. I only > >> > have select 1, 2, 3, and 5 (see attached screenshot). > >> > > >> > Alex > >> > > >> > On 1/9/07, Alexander Zatko <[hidden email]> wrote: > >> >> Hi Alex, > >> >> > >> >> I will try to use the debugger - my JS knowledge is very > >> >> rudimentary, but I > >> >> will see how far can I get. > >> >> > >> >> The app does not use web services - it uses the replace instance > >> >> mechanism > >> >> to refresh the instance containing the data the user is selecting > >> >> in the > >> >> select controls. Due to the size of the navigated tree I can not > >> >> load it > >> >> when I first display the page, so I am populating coupe of select > >> >> controls > >> >> interactively. > >> >> > >> >> I created a simplified version of the app and installed it to my > >> >> server (see > >> >> the URL in the steps to reproduce below). I would be happy to send > >> >> also > >> >> simplified code that can be easily installed. > >> >> > >> >> Steps to reproduce the problem - only IE on Windows shows the > >> >> JavaScript > >> >> issue. The problem with referenced node value not being set when > >> >> an item is > >> >> clicked when viewed in Firefox can be seen on this app as well. > >> >> Please note > >> >> that even when the page is first time loaded IE throws a bunch of > >> >> errors > >> >> (not the case for Firefox). This is not happening when running the > >> >> app > >> >> stand-alone and can be ignored (so it seems). > >> >> > >> >> 1) open http://tamburine.printfast.net:8081/ops/test/home > >> >> 2) click the role2 in the Select 1 select control. (The selection > >> >> should be > >> >> shown in the brackets next to the control label. If viewed in > >> >> Firefox, > >> >> simple clicking the item in the control will not assign value of > >> >> the clicked > >> >> item into the referenced node - click the focuser item first. This > >> >> is the > >> >> case for Firefox in all select controls - at least on the Mac > >> >> platform). > >> >> 3) click the Add button > >> >> 4) click role1 in the Select 2 control. Make sure the node gets > >> >> set > >> >> (again - this is a concern on Firefox primarily) > >> >> 5) click the PATRMV item in the Select 3 control > >> >> 6) click the role2 item in the Select 4 select control. Every > >> >> time an > >> >> item is clicked in this control the app is doing instance-replace. > >> >> At this > >> >> point a JS error should be shown in IE. In some versions just the > >> >> Loading... > >> >> message is shown and does not go away which prevents other > >> >> functionality of > >> >> the app. > >> >> > >> >> If - in step 4 - you follow this sequence instead: > >> >> > >> >> a) click role2 n the Select 2 then > >> >> b) click the PATRMV item in the Select 3 then > >> >> c) click the role1 item in the Select 4 > >> >> > >> >> ...the error does not show. > >> >> > >> >> Thanks. > >> >> > >> >> A. > >> >> > >> >> > >> >> On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: > >> >> > >> >> Alex, > >> >> > >> >> On 1/8/07, Alexander Zatko <[hidden email]> wrote: > >> >> I tested this functionality in IE (Windows) initially where I > >> >> detected it. > >> >> > >> >> I am not sure how familiar you are with JavaScript development, > >> >> but if > >> >> the error only happens on IE, you might want to install the > >> Microsoft > >> >> Script Debugger. It is a free tool, and you get it from the page > >> >> linked below. After you install the Script Debugger, when an error > >> >> occurs, you will be able to start the debugger, and see precisely > >> >> where the error is. Gathering this information will already be > >> >> useful. > >> >> > >> >> http://www.microsoft.com/downloads/details.aspx? > >> >> FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en > >> >> > >> >> Also, I understand you need to call services. If you can get away > >> >> with > >> >> those services just always returning the same result, you can > >> >> "implement" the services by putting that static result as a static > >> >> XML > >> >> file on some public Web server. GeoCities works quite well for > >> this > >> >> :). Then you can have a single XHTML+XForms file that calls those > >> >> services, and runs in the XForms sandbox. > >> >> > >> >> Alex > >> >> -- > >> >> Blog (XML, Web apps, Open Source): > >> >> http://www.orbeon.com/blog/ > >> >> > >> >> > >> >> -- > >> >> You receive this message as a subscriber of the ops- > >> >> [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 > >> >> > >> >> > >> >> -- > >> >> You receive this message as a subscriber of the ops- > >> >> [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 > >> >> > >> >> > >> >> > >> > > >> > > >> > -- > >> > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > >> > http://www.orbeon.com/ > >> > <alex.png> > >> > > >> > -- > >> > You receive this message as a subscriber of the ops- > >> > [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 > >> > >> > >> > >> > >> > >> -- > >> You receive this message as a subscriber of the ops- > >> [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 > >> > >> > >> > > > > > > -- > > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > > http://www.orbeon.com/ > > > > > > -- > > You receive this message as a subscriber of the ops- > > [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 > > > > > > -- > 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 > > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Peter Kolarov-2
Hi Peter,
This looks like a bug. Changing those optimization options should not have this type of side effect. Would you be able to put together a test case we can run here to reproduce this? Alex On 1/31/07, Peter Kolarov <[hidden email]> wrote: > Hello, > > I am getting empty response when using simple GET submission to some > external link when: > > 1) in config optimizations are OFF. E.g. > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > value="false"/> > > 2) and some non-default @separator is defined e.g. > > <xforms:submission method="get" replace="all" id="generate" > ref="instance('params')" separator="&" action="http://google.com"/> > > Is this a known bug in OF? > > -peter > > > > > -- > 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 > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi Alex,
Here is some simple form to try (please note @separator in the submission, without it it works fine regardless of optimized post/get). To us it is important bug since we use unoptimized get/post in order for OF to pass basic authentication in the submissions. <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> <xhtml:head> <xforms:model> <xforms:instance id="test-inst"> <instance> <a/> <b/> </instance> </xforms:instance> <xforms:submission method="get" replace="all" id="test" ref="instance('test-inst')" separator="&" action="http://www.google.com"/> </xforms:model> </xhtml:head> <xhtml:body> <xforms:submit submission="test"> <xforms:label>Submit</xforms:label> </xforms:submit> </xhtml:body> </xhtml:html> Changes in Config: <property as="xs:boolean" name="oxf.xforms.optimize-post-all" value="false"/> <property as="xs:boolean" name="oxf.xforms.optimize-get-all" value="false"/> <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" value="false"/> -peter -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro Vernet Sent: 1. februára 2007 4:04 To: [hidden email] Subject: Re: [ops-users] unoptimized GET Submission problem Hi Peter, This looks like a bug. Changing those optimization options should not have this type of side effect. Would you be able to put together a test case we can run here to reproduce this? Alex On 1/31/07, Peter Kolarov <[hidden email]> wrote: > Hello, > > I am getting empty response when using simple GET submission to some > external link when: > > 1) in config optimizations are OFF. E.g. > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > value="false"/> > > 2) and some non-default @separator is defined e.g. > > <xforms:submission method="get" replace="all" id="generate" > ref="instance('params')" separator="&" action="http://google.com"/> > > Is this a known bug in OF? > > -peter > > > > > -- > You receive this message as a subscriber of the [hidden email] > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Peter,
I was able to reproduce this problem and checked in a fix for this. You can get it if you download a nightly build. Let us know if this works out for you. Alex On 2/1/07, Peter Kolarov <[hidden email]> wrote: > Hi Alex, > > Here is some simple form to try (please note @separator in the submission, > without it it works fine regardless of optimized post/get). To us it is > important bug since we use unoptimized get/post in order for OF to pass > basic authentication in the submissions. > > > <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:xhtml="http://www.w3.org/1999/xhtml" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > <xhtml:head> > <xforms:model> > <xforms:instance id="test-inst"> > <instance> > <a/> > <b/> > </instance> > </xforms:instance> > > <xforms:submission method="get" replace="all" id="test" > ref="instance('test-inst')" separator="&" > action="http://www.google.com"/> > </xforms:model> > </xhtml:head> > <xhtml:body> > <xforms:submit submission="test"> > <xforms:label>Submit</xforms:label> > </xforms:submit> > </xhtml:body> > </xhtml:html> > > > Changes in Config: > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > value="false"/> > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > value="false"/> > > > -peter > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > Vernet > Sent: 1. februára 2007 4:04 > To: [hidden email] > Subject: Re: [ops-users] unoptimized GET Submission problem > > Hi Peter, > > This looks like a bug. Changing those optimization options should not > have this type of side effect. Would you be able to put together a > test case we can run here to reproduce this? > > Alex > > On 1/31/07, Peter Kolarov <[hidden email]> wrote: > > Hello, > > > > I am getting empty response when using simple GET submission to some > > external link when: > > > > 1) in config optimizations are OFF. E.g. > > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > > value="false"/> > > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > > value="false"/> > > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > > value="false"/> > > > > 2) and some non-default @separator is defined e.g. > > > > <xforms:submission method="get" replace="all" id="generate" > > ref="instance('params')" separator="&" action="http://google.com"/> > > > > Is this a known bug in OF? > > > > -peter > > > > > > > > > > -- > > 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 > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Peter,
Like I said in my previous message, we fixed a bug which prevented the example you quoted to run. So give a try to the nightly build without changing your properties.xml and let us know how it works. Also, you were saying that you were configuring all the optimize settings to false because in optimize mode the authorization was not passed through. We just fixed a bug related to this as well. So if the test above works, give it a try again after putting back all the optimize settings to true in properties.xml. Alex On 2/3/07, Alessandro Vernet <[hidden email]> wrote: > Peter, > > I was able to reproduce this problem and checked in a fix for this. > You can get it if you download a nightly build. Let us know if this > works out for you. > > Alex > > On 2/1/07, Peter Kolarov <[hidden email]> wrote: > > Hi Alex, > > > > Here is some simple form to try (please note @separator in the submission, > > without it it works fine regardless of optimized post/get). To us it is > > important bug since we use unoptimized get/post in order for OF to pass > > basic authentication in the submissions. > > > > > > <xhtml:html xmlns:ev="http://www.w3.org/2001/xml-events" > > xmlns:xs="http://www.w3.org/2001/XMLSchema" > > xmlns:xhtml="http://www.w3.org/1999/xhtml" > > xmlns:xi="http://www.w3.org/2001/XInclude" > > xmlns:xforms="http://www.w3.org/2002/xforms" > > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"> > > <xhtml:head> > > <xforms:model> > > <xforms:instance id="test-inst"> > > <instance> > > <a/> > > <b/> > > </instance> > > </xforms:instance> > > > > <xforms:submission method="get" replace="all" id="test" > > ref="instance('test-inst')" separator="&" > > action="http://www.google.com"/> > > </xforms:model> > > </xhtml:head> > > <xhtml:body> > > <xforms:submit submission="test"> > > <xforms:label>Submit</xforms:label> > > </xforms:submit> > > </xhtml:body> > > </xhtml:html> > > > > > > Changes in Config: > > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > > value="false"/> > > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > > value="false"/> > > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > > value="false"/> > > > > > > -peter > > > > -----Original Message----- > > From: [hidden email] [mailto:[hidden email]] On Behalf Of Alessandro > > Vernet > > Sent: 1. februára 2007 4:04 > > To: [hidden email] > > Subject: Re: [ops-users] unoptimized GET Submission problem > > > > Hi Peter, > > > > This looks like a bug. Changing those optimization options should not > > have this type of side effect. Would you be able to put together a > > test case we can run here to reproduce this? > > > > Alex > > > > On 1/31/07, Peter Kolarov <[hidden email]> wrote: > > > Hello, > > > > > > I am getting empty response when using simple GET submission to some > > > external link when: > > > > > > 1) in config optimizations are OFF. E.g. > > > <property as="xs:boolean" name="oxf.xforms.optimize-post-all" > > > value="false"/> > > > <property as="xs:boolean" name="oxf.xforms.optimize-get-all" > > > value="false"/> > > > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" > > > value="false"/> > > > > > > 2) and some non-default @separator is defined e.g. > > > > > > <xforms:submission method="get" replace="all" id="generate" > > > ref="instance('params')" separator="&" action="http://google.com"/> > > > > > > Is this a known bug in OF? > > > > > > -peter > > > > > > > > > > > > > > > -- > > > 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 > > > > > > > > > > > > -- > > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > > 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 > > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > http://www.orbeon.com/ > -- Orbeon Forms - Web Forms for the Enterprise, Done the Right Way 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Alessandro Vernet
Just a quick follow-up on this issue:
Alexander Zatko sent me an update file to reproduce this by private email. With his authorization I am attaching it to this message. With this test case: After I click on role2 and then Add, I get an NPE, as the <xforms:delete> executed when I click on the Add fails. The "at" expression returns an empty sequence. The expression is: index-of(instance('main-instance')//get_roles/role/@id,//zoznamy/role/@na-pridanie) When the expression is evaluated, <zoznamy> contains only one <role>, and its "na-pridanie" attribute is empty: <zoznamy> <role na-pridanie="" selected="" label="Select 4"> <role_name id="0"/> The server should not throw an NPE in this case. Here the corresponding bug: http://forge.objectweb.org/tracker/index.php?func=detail&aid=306667&group_id=168&atid=350207 Alex On 1/31/07, Alessandro Vernet <[hidden email]> wrote: > Alex, > > That works. If you can attach to your response the few files I need to > reproduce this, I will have certainly have a look at it. > > Alex > > On 1/30/07, Alexander Zatko <[hidden email]> wrote: > > Alex, > > > > I don't think this will work with a static instance - the error > > occurs when a value-changed event triggers a @replace="instance" > > submission. But I think the example is quite concise and should be > > easily deployable for testing on your machine. > > > > A. > > > > On Jan 31, 2007, at 3:47 AM, Alessandro Vernet wrote: > > > > > Hi Alex, > > > > > > OK, I can reproduce the issue now. This should just work with static > > > instance, shouldn't it? Would you be make this example run the XForms > > > sandbox, so I can run and debug it locally? > > > > > > Alex > > > > > > On 1/29/07, Alexander Zatko <[hidden email]> wrote: > > >> Hi Alex, > > >> > > >> Right - I made a mistake in describing the steps. The 6th step should > > >> read: > > >> > > >> 6) click the role2 item in the Select 2 select control. > > >> > > >> I found out that this error can be reproduced reliably on IE6 only. I > > >> thought I saw it also in IE7, but I just tested it again and the form > > >> seems to work fine. Maybe MS updated the IE since I put up the test. > > >> > > >> A. > > >> > > >> > > >> On Jan 30, 2007, at 3:42 AM, Alessandro Vernet wrote: > > >> > > >> > Hi Alex, > > >> > > > >> > I have tried to reproduce the steps above. Everything went fine > > >> until > > >> > step 6. At that point, I don't have a select4 on my screen. I only > > >> > have select 1, 2, 3, and 5 (see attached screenshot). > > >> > > > >> > Alex > > >> > > > >> > On 1/9/07, Alexander Zatko <[hidden email]> wrote: > > >> >> Hi Alex, > > >> >> > > >> >> I will try to use the debugger - my JS knowledge is very > > >> >> rudimentary, but I > > >> >> will see how far can I get. > > >> >> > > >> >> The app does not use web services - it uses the replace instance > > >> >> mechanism > > >> >> to refresh the instance containing the data the user is selecting > > >> >> in the > > >> >> select controls. Due to the size of the navigated tree I can not > > >> >> load it > > >> >> when I first display the page, so I am populating coupe of select > > >> >> controls > > >> >> interactively. > > >> >> > > >> >> I created a simplified version of the app and installed it to my > > >> >> server (see > > >> >> the URL in the steps to reproduce below). I would be happy to send > > >> >> also > > >> >> simplified code that can be easily installed. > > >> >> > > >> >> Steps to reproduce the problem - only IE on Windows shows the > > >> >> JavaScript > > >> >> issue. The problem with referenced node value not being set when > > >> >> an item is > > >> >> clicked when viewed in Firefox can be seen on this app as well. > > >> >> Please note > > >> >> that even when the page is first time loaded IE throws a bunch of > > >> >> errors > > >> >> (not the case for Firefox). This is not happening when running the > > >> >> app > > >> >> stand-alone and can be ignored (so it seems). > > >> >> > > >> >> 1) open http://tamburine.printfast.net:8081/ops/test/home > > >> >> 2) click the role2 in the Select 1 select control. (The selection > > >> >> should be > > >> >> shown in the brackets next to the control label. If viewed in > > >> >> Firefox, > > >> >> simple clicking the item in the control will not assign value of > > >> >> the clicked > > >> >> item into the referenced node - click the focuser item first. This > > >> >> is the > > >> >> case for Firefox in all select controls - at least on the Mac > > >> >> platform). > > >> >> 3) click the Add button > > >> >> 4) click role1 in the Select 2 control. Make sure the node gets > > >> >> set > > >> >> (again - this is a concern on Firefox primarily) > > >> >> 5) click the PATRMV item in the Select 3 control > > >> >> 6) click the role2 item in the Select 4 select control. Every > > >> >> time an > > >> >> item is clicked in this control the app is doing instance-replace. > > >> >> At this > > >> >> point a JS error should be shown in IE. In some versions just the > > >> >> Loading... > > >> >> message is shown and does not go away which prevents other > > >> >> functionality of > > >> >> the app. > > >> >> > > >> >> If - in step 4 - you follow this sequence instead: > > >> >> > > >> >> a) click role2 n the Select 2 then > > >> >> b) click the PATRMV item in the Select 3 then > > >> >> c) click the role1 item in the Select 4 > > >> >> > > >> >> ...the error does not show. > > >> >> > > >> >> Thanks. > > >> >> > > >> >> A. > > >> >> > > >> >> > > >> >> On Jan 9, 2007, at 8:26 PM, Alessandro Vernet wrote: > > >> >> > > >> >> Alex, > > >> >> > > >> >> On 1/8/07, Alexander Zatko <[hidden email]> wrote: > > >> >> I tested this functionality in IE (Windows) initially where I > > >> >> detected it. > > >> >> > > >> >> I am not sure how familiar you are with JavaScript development, > > >> >> but if > > >> >> the error only happens on IE, you might want to install the > > >> Microsoft > > >> >> Script Debugger. It is a free tool, and you get it from the page > > >> >> linked below. After you install the Script Debugger, when an error > > >> >> occurs, you will be able to start the debugger, and see precisely > > >> >> where the error is. Gathering this information will already be > > >> >> useful. > > >> >> > > >> >> http://www.microsoft.com/downloads/details.aspx? > > >> >> FamilyID=2f465be0-94fd-4569-b3c4-dffdf19ccd99&displaylang=en > > >> >> > > >> >> Also, I understand you need to call services. If you can get away > > >> >> with > > >> >> those services just always returning the same result, you can > > >> >> "implement" the services by putting that static result as a static > > >> >> XML > > >> >> file on some public Web server. GeoCities works quite well for > > >> this > > >> >> :). Then you can have a single XHTML+XForms file that calls those > > >> >> services, and runs in the XForms sandbox. > > >> >> > > >> >> Alex > > >> >> -- > > >> >> Blog (XML, Web apps, Open Source): > > >> >> http://www.orbeon.com/blog/ > > >> >> > > >> >> > > >> >> -- > > >> >> You receive this message as a subscriber of the ops- > > >> >> [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 > > >> >> > > >> >> > > >> >> -- > > >> >> You receive this message as a subscriber of the ops- > > >> >> [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 > > >> >> > > >> >> > > >> >> > > >> > > > >> > > > >> > -- > > >> > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > > >> > http://www.orbeon.com/ > > >> > <alex.png> > > >> > > > >> > -- > > >> > You receive this message as a subscriber of the ops- > > >> > [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 > > >> > > >> > > >> > > >> > > >> > > >> -- > > >> You receive this message as a subscriber of the ops- > > >> [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 > > >> > > >> > > >> > > > > > > > > > -- > > > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > > > http://www.orbeon.com/ > > > > > > > > > -- > > > You receive this message as a subscriber of the ops- > > > [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 > > > > > > > > > > > > -- > > 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 > > > > > > > > > -- > Orbeon Forms - Web Forms for the Enterprise, Done the Right Way > http://www.orbeon.com/ > -- Orbeon Forms - Web 2.0 Forms 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws test.zip (6K) Download Attachment |
Free forum by Nabble | Edit this page |