Re: Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-05 Thread Martin Grigorov
Check https://github.com/wicketstuff/core/tree/master/jdk-1.6-parent/wicket-html5-parent/wicket-html5/src/main/java/org/wicketstuff/html5/fileapi and its examples. But this uses HTML5 APIs and wont work on your favorite Internet Explorer. On Sun, Sep 4, 2011 at 7:35 PM, Christian Huber

Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-04 Thread martin . asenov
Hello, guys, I've got a FileUploadField as so: image1UploadField = new FileUploadField(image1_upload, new Model()); I aim to know if the field has value set even before the form gets processed and the item gets uploaded. I want to minimize traffic and memory usage of my application.

Re: Know if FileUploadField has value set before its parent form is submitted and file gets uploaded

2011-09-04 Thread Christian Huber
Not sure if I completely understand what you want to do but as far as I do I guess the only way to do that is using java script. You could add a java script validation routine to the submit buttons onclick handler that aborts submission when the input field has no value. Another approach