I am experiencing an annoying issue. What I want to be able to do is:
- Have a custom file chooser widget (standard gwt-FileUpload hidden/off screen and a simple styled button shown).
- User clicks the button, the file dialog is shown
- User selects a file
- 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?
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 firstname.lastname@example.org.
To post to this group, send email to email@example.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
Post a Comment