return String.format("function(v) {%s;}", getCallbackScript());
}
@Override
protected void respond(AjaxRequestTarget target) {
Request r = target.getPage().getRequest();
ViewType type = ViewType.forCode(r.getRequestParameters().getParameterValue("view").toString());
DateTimeFormatter fmt = ISODateTimeFormat.dateTimeParser().withZone(DateTimeZone.UTC);
DateMidnight start = fmt.parseDateTime(r.getRequestParameters().getParameterValue("start").toString())
.toDateMidnight();
DateMidnight end = fmt.parseDateTime(r.getRequestParameters().getParameterValue("end").toString())
.toDateMidnight();
DateMidnight visibleStart = fmt.parseDateTime(
r.getRequestParameters().getParameterValue("visibleStart").toString()).toDateMidnight();
DateMidnight visibleEnd = fmt
.parseDateTime(r.getRequestParameters().getParameterValue("visibleEnd").toString()).toDateMidnight();
View view = new View(type, start, end, visibleStart, visibleEnd);
CalendarResponse response = new CalendarResponse(getCalendar(), target);
onViewDisplayed(view, response);
}