// Include the prototype.js library which is made available under
// the web folder "/click/prototype/"
headElements.add(new JsImport("/click/prototype/prototype.js"));
Context context = getContext();
// Create a model to pass to the Page JavaScript template. The
// template recognizes the following Velocity variables:
// $context, $path, $selector and $target
Map model = ClickUtils.createTemplateModel(this, context);
// Set path to the AjaxCustomer Page path
model.put("path", context.getPagePath(AjaxCustomer.class));
// Add a CSS selector, in this case the customerSelect ID attribute
model.put("selector", customerSelect.getId());
// Add the ID of a target element in the Page template to replace