@Override
public void renderHead(Component c, IHeaderResponse response) {
for (int i = 0; i < jsReferences.length; i++) {
JavaScriptResourceReference javascriptResourceReference = jsReferences[i];
response.renderJavaScriptReference(javascriptResourceReference);
}
}});
}
AjaxRequestTarget target = AjaxRequestTarget.get();
if (target != null && findPage() != null) {
target.appendJavaScript(control.getJSadd(OpenLayersMap.this));
if (jsReferences != null && jsReferences.length > 0) {
for (int i = 0; i < jsReferences.length; i++) {
JavaScriptResourceReference javascriptResourceReference = jsReferences[i];
target.getHeaderResponse().renderJavaScriptReference(
(javascriptResourceReference));
}
}