Hello, I have following code in my wicket component: <wicket:head> <script type="text/javascript" src="http://www.google.com/jsapi"></script> </wicket:head>
Everything is OK if component is visible from the begining. But if component is enabled by AJAX, I have following in the logs: *INFO: * Initiating Ajax POST request on 1?3-1.IBehaviorListener.0-form-mbkView&random=0.5660016379886397 *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (2739 characters) *INFO: * <?xml version="1.0" encoding="UTF-8"?><ajax-response><header-contribution><![CDATA[<head xmlns:wicket=" http://wicket.apache.org"> <script type="text/javascript" src="http://www.google.com/jsapi"></script> </head>]]></header-contribution><component id="dataHolder1f" ><![CDATA[<div id="dataHolder1f"> <div> <div id="chart_div"></div> </div> </div>]]></component><evaluate encoding="wicket1">...........</evaluate></ajax-response> *INFO: *Response parsed. Now invoking steps... *INFO: * *INFO: *Initiating Ajax GET request on http://www.google.com/jsapi *INFO: *Invoking pre-call handler(s)... *INFO: *Received ajax response (0 characters) *INFO: *Invoking post-call handler(s)... *INFO: *returned focused element: [object HTMLSelectElement] *INFO: *returned focused element: [object HTMLSelectElement] *ERROR: * Wicket.Ajax.Call.processEvaluation: Exception evaluating javascript: ReferenceError: google is not defined *INFO: *Response processed successfully. And in console: Request: OPTIONS /jsapi HTTP/1.1 Host: www.google.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0 Response: HTTP/1.1 405 Method Not Allowed Content-Length: 0 Content-Type: text/html Date: Tue, 29 Nov 2011 13:40:26 GMT Server: GFE/2.0 So, why wicket needs in OPTIONS for script inclusion? Can I somehow disable that kind of request? Thanks, Ilia