Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
This is where I am rather confused. As when i move it to a package which isn't named in the .gwt.xml file I receive an error of cannot be resolved to a type. Which is fair enough, as I assumed everything in the .gwt.xml was putting the classes in 'view' of everything in the application? Or perhaps

Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
You do not have to move something out of 'client' packages to have it on your server. This is definitely wrong! You do have to move classes you want to have on the client or both client and server into the client packages (or declare those packages in your *.gwt.xml files). Since you want your

Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
Sorry, it's war/WEB-INF/classes/. On 7 Jul., 10:26, andreas horst.andrea...@googlemail.com wrote: You do not have to move something out of 'client' packages to have it on your server. This is definitely wrong! You do have to move classes you want to have on the client or both client and

Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
It could possibly be because I am using Enunciate to develop my application with. Here is my complete error: [INFO] [ERROR] BUILD ERROR [INFO] [INFO]

Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Oops. That was supposed to say: a 'PROBLEM' with... On Jul 7, 9:44 am, day_trader mwmcmul...@gmail.com wrote: It could possibly be because I am using Enunciate to develop my application with. Here is my complete error: [INFO]

Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
The inherits tag is for inheriting GWT modules not for inheriting Java files or similar (afaik). You add packages to the GWT translatable sources via source tag: source path='client' / This should be enough assuming your GWT module is in 'com.myApp'. Andreas On 7 Jul., 10:44, day_trader

Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
Does not appear to be working even with the source path=''/, assuming I'm giving the correct path. Is the path of the form of a directory or package? On Jul 7, 9:51 am, andreas horst.andrea...@googlemail.com wrote: The inherits tag is for inheriting GWT modules not for inheriting Java files or

Re: onSuccess() return value other than void?

2010-07-07 Thread andreas
http://lmgtfy.com/?q=gwt+module+xml+source http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html http://www.gwtapps.com/doc/html/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.html It's a subpackage of the package your module is located in

Re: onSuccess() return value other than void?

2010-07-07 Thread day_trader
I managed to find that after my last post. Whilst they were good links it still does not seem to work. Something fundamental is wrong but I can't work out what. I appreciate the help thus far but it appears I'm in some eternal loop! -- You received this message because you are subscribed to the

Re: onSuccess() return value other than void?

2010-07-06 Thread day_trader
Thanks for the replies thus far. That all makes sense. I did have strong doubts about the likelihood of what I wanted but as I am not an expert in the field I thought it was better to make sure. Actually, my problems would be solved quite quickly if I got around my initial problem that led to

Re: onSuccess() return value other than void?

2010-07-06 Thread Sunny
Hi day_trader As far as i can think is that you are trying to pass an object with the data of the class.. now to make your class go to the server side all you need to do is to move it to a package that is in the package that is *not* mentioned in your your_gwt_xml.gwt.xml file as the classes in

onSuccess() return value other than void?

2010-07-02 Thread day_trader
At present, an AsyncCallback contains a 'public void onSuccess()' method. This is posing significant problems for me at the moment. I have a method myMethod() being called which has a return value type of ArrayListString. MyMethod contains this AsynCallback which is used to query a database on

Re: onSuccess() return value other than void?

2010-07-02 Thread andreas
Welcome to the async world! ;-) I had the same problem. Since the code of an async callback is not executed in the order of the statements in your myMethod() you can not directly return the results from onSuccess() in myMethod(). And myMethod() is not able to wait for onSuccess(). You could for

Re: onSuccess() return value other than void?

2010-07-02 Thread Sean
Yeah, it takes a while to start thinking Asynchronously. But Andreas has the right of it. You no longer think of it as call myMethod() to return the ArrayListString; you have to think of it is: 1) What do I want my user to do to request the data. (Or my program, like on start up you want the