Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
Wow. Now that's a stupid safari bug. Please fill a bug, I'll look at it as soon as I can. Thanks for finding it. -Matej Adam Smyczek wrote: Problem found, it looks like safari aborts execution when getElementsByTagName is called on a text node (in contrast calling e.g. 'childNodes' works fine.) The problem occurs in the Wicket.Head.addJavascripts (called from Wicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check for the node type of the element or childNodes.lenght 0 before element.getElementsByTagName(script) is called. Do you have another solution or can I file a bug for it? Adam On Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and javascript 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on
Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
Done. Thanks, Adam On Sep 13, 2006, at 1:58 AM, Matej Knopp wrote: Wow. Now that's a stupid safari bug. Please fill a bug, I'll look at it as soon as I can. Thanks for finding it. -Matej Adam Smyczek wrote: Problem found, it looks like safari aborts execution when getElementsByTagName is called on a text node (in contrast calling e.g. 'childNodes' works fine.) The problem occurs in the Wicket.Head.addJavascripts (called from Wicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check for the node type of the element or childNodes.lenght 0 before element.getElementsByTagName(script) is called. Do you have another solution or can I file a bug for it? Adam On Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behavior Id =0 random=0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behavior Id =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and javascript 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behavior Id =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behavior Id =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam --- -- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
Problem found, it looks like safari aborts execution when getElementsByTagName is called on a text node (in contrast calling e.g. 'childNodes' works fine.) The problem occurs in the Wicket.Head.addJavascripts (called from Wicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check for the node type of the element or childNodes.lenght 0 before element.getElementsByTagName(script) is called. Do you have another solution or can I file a bug for it? Adam On Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and javascript 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Border encoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:body This is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/javascript !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list
Re: [Wicket-user] Ajax request 'hangs' on Safari - problem found (Wicket 2.0)
i would file it as a bug just so it wouldnt get lost and assign it to matej :)-IgorOn 9/12/06, Adam Smyczek [EMAIL PROTECTED] wrote:Problem found, it looks like safari aborts execution when getElementsByTagNameis called on a text node (in contrast calling e.g. 'childNodes' worksfine.)The problem occurs in the Wicket.Head.addJavascripts (called fromWicket.replaceOuterHtml) function when one of the elements is a text node. A fix could be to check forthe node type of the element orchildNodes.lenght 0 before element.getElementsByTagName(script)is called.Do you have another solution or can I file a bug for it? AdamOn Sep 9, 2006, at 11:44 AM, Eelco Hillenius wrote: I can't reproduce this. All Ajax examples (wicket-examples/ajax) work fine with Safari (2.0.4) for me. Maybe you could give us a code sample of the thing that fails with you? Eelco On 9/9/06, Adam Smyczek [EMAIL PROTECTED] wrote: Hi All, I have an ajax problem on Safari browser. When I update a component using AbstractDefaultAjaxBehavior the ajax log looks like following: -- begin -- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random= 0.4174859744578069 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Borderencoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:bodyThis is a static tooltip loaded on first mouseover event!/wicket:body/wicket:border/spanscript type=text/_javascript_ !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 1:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... -- end -- It looks like the response cannot be processed correctly and _javascript_ 'hangs' because on every following request I get the 'Chanel busy - postponing...' message. On Firefox everything works fine. To compare following is the ajax log: -- begin-- INFO: INFO: Initiating Ajax GET request on /quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0 random=0.9799105785595497 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (686 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent id=tooltip2Trigger_tooltip2Borderencoding=wicket1 ![CDATA [span style=display:none; id=tooltip2Trigger_tooltip2Border wicket:id=tooltip2Border class=tooltipwicket:borderwicket:bodyThis is a static tooltip loaded on first mouseover event! /wicket:body/wicket:border/spanscript type=text/_javascript_ !--/*--![CDATA[/*!--*/ tooltipManager.registerTrigger ('tooltip2Trigger', 'tooltip2Trigger_tooltip2Border', false, '/quickstart/app? wicket:interface=: 2:tooltip2Trigger:tooltip2Border::IBehaviorListenerwicket:behaviorId =0' ); /*--]^]^*//script ]]/component/ajax-response INFO: Response parsed. Now invoking steps... INFO: Response processed successfully. INFO: Invoking post-call handler(s)... -- end -- Any idea what could be wrong with this response? Regards, Adam - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel? cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user