Wednesday, July 20, 2016

FileUpload doesn't jumps in ChangeHandler

Hello together,

i would like to know why after selecting a directory, the onChange method isn't triggered?

Thank you very much for your help.


public class CenterPanel extends ScrollPanel {

    final FileUpload fileUpload = new FileUpload();

    public CenterPanel(final GoogleUploader gooUp) {
        fileUpload.getElement().setPropertyBoolean("webkitdirectory", true);

        Image upBack = new Image(Resources.INSTANCE.uploadBackground());
        this.getElement().setPropertyString("align", "left");

        upBack.addDoubleClickHandler(new DoubleClickHandler() {

            public void onDoubleClick(DoubleClickEvent event) {
                // TODO Auto-generated method stub

        fileUpload.addChangeHandler(new ChangeHandler() {

            public void onChange(ChangeEvent event) {
                // TODO Auto-generated method stub

                JavaScriptObject fileList = event.getNativeEvent().cast();


        this.getElement().setAttribute("id", "idScrollPanel");


    private native JsArray<File> getFiles(JavaScriptObject e) /*-{
        var files =;
        return files;

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment