[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Re: FileUpload provided from .jar (plugin)

Hi Aleksandar,

the upload widget and it's dependencies are all OSGi-bundles (I expect you're not running RWT standalone).
As with every other OSGi bundle, you should either have it in your workspace or export them as plugins to your target platform location.
After that you can use it by defining a dependency from your plugin to the upload widget bundle.


If you're still not sure what to do, feel free to ask!

Regards,
  Ben

Aleksandar Pavlov wrote:
Hello friends,
finally I get to know the file upload process.
The problem that I am stuck at is that I would like to use the upload
project as a jar plug-in. So I jar-ed commons-fileupload, commons-io and
rwt.widgets.upload. Then added them to a lib folder in the upload demo.
And ended up with the well known error:

"Could not evaluate javascript response:
TypeError: org.eclipse.rwt.widgets.Upload is not a constructor"

This thread[1] discuses the same problem but the solution[2] is too
vague for me.
My questions are:
1) is that the expected way to use the upload project;
2) what is web.xml in the context of RAP projects, as this is the first
time for me to stumble upon such case. Where is it defined and what are
its functions. An example is greatly appreciated;
3) is there another solution to this problem;

Thank you in advance,
Aleks


[1] http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg05437.html [2] http://dev.eclipse.org/newslists/news.eclipse.technology.rap/msg05500.html


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource