oh, and don't forget to evict the javascript from browser cache ;-)

Matej Knopp wrote:
> Thanks for the testcase. Can you please check if the current svn (1.x) 
> solves your problem? (It solved the testcase).
> 
> -Matej
> 
> Erik van Oosten wrote:
>> Hi Matej,
>>
>> You can download a quickstart here: 
>> https://omelet.zapto.org/ajaxtrouble.zip (3Mb).
>>
>> Regards,
>>     Erik.
>>
>>
>> Matej Knopp schreef:
>>> Can you please provide a test case?
>>>
>>> Thanks.
>>> -Matej
>>>
>>> Erik van Oosten wrote:
>>>   
>>>> Hi,
>>>>
>>>> The release notes of 1.2.3 state that the Ajax header contributions 
>>>> should be gone. Since the 1.2.3 release is still not in Ibiblio I just 
>>>> upgraded (1 Oct, 11:00 CET) my copy of the 1.x branch. I triple checked 
>>>> that I am actually working with that copy.
>>>>
>>>> Unfortunately there are still problems with autocompletion, both in IE 
>>>> and FireFox. In my setup I have a AJAX-loaded panel that contains form 
>>>> fields with autocompletion.
>>>>
>>>> --IE 6.0--
>>>> In IE the autocompletion works, but each autocompletion handlers is 
>>>> instantiated twice.
>>>> When I look at the source (I use the Full source plugin), I see the 
>>>> autocompletion js included inline in the page. Below that you see the 
>>>> following:
>>>>
>>>> <SCRIPT id=null src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>> <SCRIPT id=null src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>> <SCRIPT id=null src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>> <SCRIPT id=undefined src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>> <SCRIPT id=undefined src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>> <SCRIPT id=undefined src_="undefined"><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</SCRIPT>
>>>>
>>>>
>>>> --FireFox 2.0--
>>>> In FireFox the autocompletion only works after a submit of the form.
>>>> After the first load of the panel (with Ajax) I also see autocompletion 
>>>> js inline in the page header. Below that you see:
>>>>
>>>> <script src_="undefined" id=""><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_2_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:2:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</script><script src_="undefined" 
>>>> id=""><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_3_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:3:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</script><script src_="undefined" 
>>>> id=""><!--/*--><![CDATA[/*><!--*/
>>>> new 
>>>> Wicket.AutoComplete('maincontent_searchform_form_formElements_4_inputfragment_formelement','/rbrb/app?wicket:interface=:1:maincontent:searchform:form:formElements:4:inputfragment:formelement:-1:IUnversionedBehaviorListener&wicket:behaviorId=0&wicket:ignoreIfNotActive=true');
>>>> /*-->]]>*/</script>
>>>>
>>>> These pieces of javascript are unfortunately not being executed.
>>>> Note that the id's are empty and there this weird "src_" attribute. I am 
>>>> sure how FireFox treats this. Also I wonder why the scripts are so 
>>>> carefully commented. I guess that every browser that supports Ajax will 
>>>> not need these comments.
>>>>
>>>> I tried to debug the load phase with FireBug. Unfortunately my 
>>>> JavaScript is lacking way too much for this advanced stuff.
>>>>
>>>> Any help is greatly appreciated.
>>>>
>>>> Regards,
>>>>      Erik.
> 
> 
> -------------------------------------------------------------------------
> 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=lnk&kid=120709&bid=263057&dat=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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to