@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); AjaxSubmitLink.this.updateAjaxAttributes(attributes); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); AjaxSubmitLink.this.updateAjaxAttributes(attributes); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); // we need to force EditArea to update the textarea contents (which it // hides) // before submitting the form, otherwise the contents won't be the ones the // user // edited attributes .getAjaxCallListeners() .add( new AjaxCallListener() { @Override public CharSequence getBeforeHandler( Component component) { return "document.getElementById('requestBody').value = document.gsEditors.requestBody.getValue();"; } }); } });
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes .getAjaxCallListeners() .add( new AjaxCallListener() { /** serialVersionUID */ private static final long serialVersionUID = 8637613472102572505L; @Override public CharSequence getPrecondition(Component component) { CharSequence message = new ParamResourceModel("confirmOverwrite", stylePage) .getString(); message = JavaScriptUtils.escapeQuotes(message); return "var val = attrs.event.view.document.gsEditors ? " + "attrs.event.view.document.gsEditors." + stylePage.editor.getTextAreaMarkupId() + ".getValue() : " + "attrs.event.view.document.getElementById(\"" + stylePage.editor.getTextAreaMarkupId() + "\").value; " + "if(val != '' &&" + "!confirm('" + message + "')) return false;"; } }); }
@Override protected void updateAjaxAttributes(AjaxRequestAttributes attributes) { super.updateAjaxAttributes(attributes); attributes.getAjaxCallListeners().add(new IAjaxCallListener() {