Tuesday, August 16, 2011

How do I load test data into my Widget

I am using the Google Toolkit and I have created a widget with a
listbox, vertical split panel and a couple of buttons. What I am
trying to do is have a list of files in a local directory listed in
the listbox and I want to be able to click on a file and have it
displayed in the top part of the split panel. I found out the hard way
about browsers and file IO and not being able to use java.io.File.

What are my options? Can I put the data files inside a jar or
something and have the widget read it in that way? I need to do this
as a test run, to implement an new feature with working with the data.
It's not going to be any kind of final server hosted application, I am
not concerned about how the actual files will be loaded in the future.

Any suggestions would be greatly appreciated.

Respectfully,
DemiSheep

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate