1) If you have the javadoc of the library where the javabean Class is, you don't need the source at all.
2) Simply put the *.jar in /WEB-INF/lib of your web application. GWT don't prevent you to use normal java library in your project. As soon as is done, your javabean is in the CLASSPATH of your application. You can use it.
3) If you use Eclipse as IDE, simply right-clic on the project -> propertie -> build path -> add external jar. And it's done
4) If you have the source, but don't have the javadoc, unzip the source jar in a folder. Then repeat the step 3), clic on the jar you just added -> javadoc location -> browse to the folder where you unzip the source. And it's done.
I hope it helps.
Regards.
Karim Duran
2011/9/28 David <comp634@gmail.com>
I need to use Java beans (classes with getters and setters) from an
external jar-file (like Xyz-1.2.3.jar) on the browser client. These
beans implements java.io.Serializable and the Java source is available
in a separate Xyz-1.2.3-sources.jar. How could this be done?
I found http://www.vogella.de/articles/GWTModules/article.html but
still can't get it to work.
Any help appreciated, thanks!
--
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.
--
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.
No comments:
Post a Comment