Just a quick update. I followed Matej's advice & tried this after an upgrade to wicket 1.3 It works for me now!! Thanks a lot for your assistance Matej
narend wrote: > > Thanks Matej! > I think I will try upgrading to 1.3 & will let you all you know if that > solved it. > On a related note.. I found a post with the same problem as mine. I > hard-coded the ajax script in the header like the post suggested and it > solved the issue. But hard-coding is not a real long-term solution for me > though. > http://www.mail-archive.com/[EMAIL PROTECTED]/msg30896.html > > > Matej Knopp-2 wrote: >> >> Looks like a bug in 1.2.6. Can you upgrade to 1.3? >> >> -Matej >> >> On Nov 28, 2007 9:29 PM, narend <[EMAIL PROTECTED]> wrote: >>> >>> Hi folks >>> I use AjaxSubmitLink & AutoCompleteTextField on my wicket page. The >>> AjaxSubmitLink works fine when I first access the page, but when I >>> navigate >>> away from the page and try the AjaxSubmitLink again, I get a javascript >>> error. When I refresh the page, the AjaxSubmitLink works fine again. >>> >>> Javascript error : "wicketAjaxGet is not defined" >>> >>> I took a look at the page source when I receive the error. The ajax >>> javascript (see below) are missing in the header when I get the error. >>> When >>> I refresh the page, the ajax javascript is back in the header. >>> >>> JavaScript snippet from the header of page: >>> <script type="text/javascript" >>> src="/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js"></script> >>> <script type="text/javascript" >>> src="/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug-drag.js"></script> >>> <script type="text/javascript" >>> src="/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js"></script> >>> >>> Is this a bug in wicket 1.2.6? Or is anyone familiar with a fix to >>> this? >>> I did a search in the forums but I did not find a solution to this >>> problem >>> >>> fyi... I inject the CSS for the page using HeaderContributor >>> Let me know if you need more information while I take a crack at this >>> issue >>> in the meantime >>> -- >>> View this message in context: >>> http://www.nabble.com/wicketAjaxGet-is-not-defined..-javascript-error-tf4891958.html#a14008494 >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/wicketAjaxGet-is-not-defined..-javascript-error-tf4891958.html#a14132131 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
