To achieve this, we can use an AttributeModifier to prepend Javascript to e.g. the "onchange" attribute of the file upload input element.
fileUploadField.add(new AjaxFormSubmitBehavior(this,"onchange") {
// ----- implementation snipped ----------
});
fileUploadField.add(AttributeModifier.prepend("onchange", "this.style.visibility='hidden';"));
// ----- implementation snipped ----------
});
fileUploadField.add(AttributeModifier.prepend("onchange", "this.style.visibility='hidden';"));
No comments:
Post a Comment