Thank you very much. I'll try both options. Rodolfo
On Tue, Nov 8, 2016 at 9:13 AM Vassilis Virvilis <[email protected]> wrote: > with @jsinterop you can (untested of course) > > @JsType(isNative = true) > public class JavaScriptFile { > public String filename; > public String anotherMember; > } > > then __if__ you can cast JavaScriptObject to the @jsinterop type you can > acces its fields directly. > > with jsni you can do that (also untested) > > public native String getFile(JavaScriptObject jsfile) /*-{ > return jsfile.filename; > }-*; > > Afaik JSNI is not the proffered way of doing things in the GWT world. > > Hope that helps > > > On Tue, Nov 8, 2016 at 1:49 PM, Rodolfo Raya <[email protected]> wrote: > > > Hi, > > I'm trying to use GWT Polymer from Vaadin and JavaScriptObject is killing > me. > > The Upload widget returns a JavaScript object that is supposed to be a > JavaScript 'File' and I can't extract the file name from it. How can I > convert this JavaScriptObject to a useful Java object? > > Many thanks in advance, > > Rodolfo M. Raya > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > > > > > -- > Vassilis Virvilis > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/google-web-toolkit. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
