This is the same problem I reported a few days ago for Wicket 1.2.2. Igor wrote that it was already solved in th 1.x trunk. So maybe this is also the case for the 2.x trunk.
Regards, Erik. Caleb Land schreef: > When I add a component via ajax that contributes javascript to be > executed (like the AutoCompleteTextField from wicket-extensions) the > javascript is executed before the component elements are added to the > page in Firefox ( 1.5.0.7 <http://1.5.0.7>). The same code works > correctly in Safari, Opera, and IE7 (I haven't tests 6.x). > > In the case of the AutoCompleteTextField (which adds javascript > through the AbstractAutoCompleteBehavior), the javascript: > > new Wicket.Ajax.AutoComplete('<id> ', '<callbackUrl>'); > > gets executed before the control is added to the page, so an element > with the specified id cannot be found and the autocomplete > functionality isn't added to the control. > > Here is a quickstart application that demonstrates the problem: > http://www.granfalloon.com/~caleb/wicket-quickstart.zip > <http://www.granfalloon.com/%7Ecaleb/wicket-quickstart.zip> > > if I alter AbstractAutoCompleteBehavior to execute the javascript in a > setTimeout() then everything work correctly in Firefox. > -- > Caleb Land > ([EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>) -- Erik van Oosten http://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