@Override protected void updateAjaxAttributes(final AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("return params;"); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setMethod(Method.POST); }
@Override protected void updateAjaxAttributes(final AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); final List<CharSequence> dep = attributes.getDynamicExtraParameters(); dep.add("return { " + MOUSE_X_PARAM + ": x , " + MOUSE_Y_PARAM + ": y };"); }
@Override protected void updateAjaxAttributes(final AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); final List<CharSequence> dep = attributes.getDynamicExtraParameters(); dep.add("return { " + PATH_PARAMETER + ": path };"); dep.add("return { " + UUID_PARAMETER + ": uuid };"); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); StringBuilder buffer = new StringBuilder(); buffer.append("var data = serializeWidgetLocations();"); buffer.append("return {'" + JSON_DATA + "': data};"); attributes.getDynamicExtraParameters().add(buffer); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("return window.UrlUtil.joinQueryAndFragment();"); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); StringBuilder buffer = new StringBuilder(); buffer.append("var data = serializeWidgetLocations();"); buffer.append("return {'" + JSON_DATA + "': data};"); attributes.getDynamicExtraParameters().add(buffer); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("return {config: JSON.stringify(cfg)};"); attributes.setMethod(Method.POST); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setMethod(AjaxRequestAttributes.Method.POST); attributes.getDynamicExtraParameters() .add("return {'" + PARAM_HTMLCONT + "': attrs.ep.content}"); } }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("return {dashboard: JSON.stringify(serialized)};"); attributes.setMethod(Method.POST); } @Override
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setMethod(AjaxRequestAttributes.Method.POST); attributes.getDynamicExtraParameters() .add("return {'" + PARAM_HTMLCONT + "': attrs.ep.content}"); } }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getDynamicExtraParameters().add("return {dashboard: JSON.stringify(serialized)};"); attributes.setMethod(Method.POST); } @Override
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.setWicketAjaxResponse(false); attributes.setDataType("html"); } }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); if (this.duration != Duration.NONE) { attributes.setThrottlingSettings(new ThrottlingSettings("jquery-throttle", this.duration)); } }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); String evt = getEvent(); Checks.notEmpty(evt, "getEvent() should return non-empty event name(s)"); attributes.setEventNames(evt); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); String evt = getEvent(); Checks.notEmpty(evt, "getEvent() should return non-empty event name(s)"); attributes.setEventNames(evt); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); if (this.duration.compareTo(Duration.NONE) > 0) { attributes.setThrottlingSettings(new ThrottlingSettings("jquery-throttle", this.duration)); } }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); if (this.duration.compareTo(Duration.NONE) > 0) { attributes.setThrottlingSettings(new ThrottlingSettings("jquery-throttle", this.duration)); } }
/** * @return the Ajax settings for this behavior * @since 6.0 */ protected final AjaxRequestAttributes getAttributes() { AjaxRequestAttributes attributes = new AjaxRequestAttributes(); WebApplication application = (WebApplication)getComponent().getApplication(); AjaxRequestTargetListenerCollection ajaxRequestTargetListeners = application .getAjaxRequestTargetListeners(); for (AjaxRequestTarget.IListener listener : ajaxRequestTargetListeners) { listener.updateAjaxAttributes(this, attributes); } updateAjaxAttributes(attributes); return attributes; }
/** * @return the Ajax settings for this behavior * @since 6.0 */ protected final AjaxRequestAttributes getAttributes() { AjaxRequestAttributes attributes = new AjaxRequestAttributes(); WebApplication application = (WebApplication)getComponent().getApplication(); AjaxRequestTargetListenerCollection ajaxRequestTargetListeners = application .getAjaxRequestTargetListeners(); for (AjaxRequestTarget.IListener listener : ajaxRequestTargetListeners) { listener.updateAjaxAttributes(this, attributes); } updateAjaxAttributes(attributes); return attributes; }