I have a simple question concerning the fascinating Google Web ToolKit.
How can i call a normal Java method in a gwt-button event handler?[For example to call a function that add a record to a database when the user clicks a gwt-button called Register for example in a web page...]
I mean since the Java class will be compiled to Javascript and HTML code then how the compiler will reference to the method invoked?
Thanks,






See man this is so easy:
See man this is so easy: GWT is a complier from Java to Javascript. thi spage
http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.Fundamentals.JavaToJavaScriptCompiler.LanguageSupport.html
tell you which java language libraries are supported, but if you need to call db function jdbc so you shall call a servlet that for sure and this is too easy, in the servlet you can play Java as you want.
http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.RemoteProcedureCalls.html
if you need any thing else can contact at ayman_tec@yahoo.com
Ayman Emam,
B.Sc. of Computer Science
Cairo University, Egypt.