Check out this bug:
http://issues.apache.org/jira/browse/WICKET-7

For now I just converted all of my component swapping links to normal links instead of ajax ones.  I'd try to fix that bug myself, but from the discussions on this mailing list about it, it seems like a low level Wicket refactor is required to fix it.


On 11/1/06, Erik van Oosten <[EMAIL PROTECTED]> 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.


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/



-------------------------------------------------------------------------
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





--
Caleb Land
([EMAIL PROTECTED])
-------------------------------------------------------------------------
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