We are using: http://www.jasny.net/bootstrap/javascript/#fileinput integrated into our application [1] Looks good, works as expected :)
[1] https://github.com/apache/openmeetings/tree/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/util/upload On Fri, May 19, 2017 at 5:57 AM, Martin Grigorov <[email protected]> wrote: > Hi, > > Please create a quickstart app and attach it to a ticket in JIRA! > Thanks! > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, May 16, 2017 at 6:35 PM, SeldonCrisis <[email protected]> wrote: > >> Hello everyone, >> >> I would like to perform some actions in an AJAX event after selecting a >> file >> from the file-browsing pop-up window in a FileUploadField component >> (populate a list based on name of file chosen). I've tried adding an >> OnChangeAjaxBehavior to my FileUploadField and implementing the >> onUpdate(AjaxRequestTarget arg0) method. Unfortunately, this is not working >> for me. Does anyone have any suggestions as to how I could AJAX-ify this >> component? >> >> This is my current code: >> >> fileUploadField.add(new OnChangeAjaxBehavior(){ >> private static final long serialVersionUID = 1L; >> >> @Override >> protected void onUpdate(AjaxRequestTarget arg0) { >> if (fileUploadField.getFileUpload() != null){ >> info("Added file to list"); >> final FileUpload uploadedFile = >> fileUploadField.getFileUpload(); >> addFile(uploadedFile); >> buildListView(); >> arg0.add(fileUploadField); >> arg0.add(documentListItems); >> arg0.add(feedback); >> } >> } >> }); >> >> Thanks for your help! >> >> >> -- >> View this message in context: http://apache-wicket.1842946. >> n4.nabble.com/FileUploadField-with-AJAX-Behavior-tp4677874.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> -- WBR Maxim aka solomax --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
