Sunday, January 18, 2015

Programatically Click FileUpload

Hi there,

Firstly, my development environment is Chrome/Safari with Eclipse Luna and Super Dev Mode on OSX Yosemite.

I am having a bit of a time with this widget. I have created a number of upload widgets (image, audio, video etc) which extend a base upload widget. The image upload calls FileUpload.click() upon initialisation and this works as expected in the the file dialog is shown. However, for the audio and video uploads, I need the user to select an option from a SuggestBox and then once a selection is made, FileUpload.click() should be fired. This last bit is not working, or doesn't appear to be as I do not get the file dialog being shown. I have traced the code execution in SuperDevMode and FileUpload.click() does appear to get fired (execution moves past this point and no error/exception is thrown), but I cannot, for the life of me get the dialog to be shown. The FileUpload element is not hidden/disabled. Can anyone offer any advice as to what might be causing this - could it be an OS/browser issue, rather than I GWT one?

Thanks in advance,

Tim

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment