Wednesday, October 30, 2013

Native File Chooser Dialog

Hi there,

I am experiencing an annoying issue. What I want to be able to do is:
  1. Have a custom file chooser widget (standard gwt-FileUpload hidden/off screen and a simple styled button shown).
  2. User clicks the button, the file dialog is shown
  3. User selects a file
  4. Checks performed on the file (e.g. pixel size) and if not valid, alert box shown and file chooser dialog is shown again
Now, I have everything working apart from the re-showing of the file chooser dialog in the last step. I have gone through the steps with the debugger and I can see the code executing the element.click() command in my JSNI function, but the dialog is never shown. Any ideas?

Cheers

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/groups/opt_out.

No comments:

Post a Comment