// Increment count
count++;
// The response should refresh the label displaying the counter.
getRequestCycle().replaceAllRequestHandlers(
new ComponentRenderingRequestHandler(counter));
}
/**
* Alter the javascript 'onclick' event to emit the Ajax call and update the counter
* label.