Well, your async callback doesn't do anything when there's an error,
try this:

public void onFailure(Throwable caught)
{
    throw caught;
}

And are you sure there's no output in the hosted browser shell ?
What's the log level you used ?

Cheers,

Salvador

On Apr 19, 9:47 am, Alex Luya <alexander.l...@gmail.com> wrote:
> No exception,no output,that is strange
> ---------------------------------
> package com.tsolution.crm.client;
>
> public class Model
> {
>        private String desc;
>
>     public String getDesc()
>     {
>         return desc;
>     }
>     public void setDesc(String desc)
>     {
>         this.desc = desc;
>     }
>
> }
>
> -------------------------
> .................
> public void onModuleLoad()
>     {
>         Model m1 = new Model();
>         m1.setDesc("Hello");
>
>         AsyncCallback<String> callback=new AsyncCallback<String>(){
>             public void onFailure(Throwable caught)
>             {
>             }
>
>             public void onSuccess(String result)
>             {
>                 Window.alert(result);
>             }
>         };
>
>         ArrayList<Model> modelList=new ArrayList<Model>();
>         modelList.add(m1);
>
>         loginService.greetServer(modelList, callback);}
>
> ........................
>
> ----------------------------------
> package com.tsolution.crm.client;
>
> import java.util.ArrayList;
> import com.google.gwt.user.client.rpc.RemoteService;
> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
>
> @RemoteServiceRelativePath("greet")
> public interface GreetingService extends RemoteService {
>   String greetServer(ArrayList<Model> modelList);
>   String greetServer1(String modelList);}
>
> -----------------------------------------------
> package com.tsolution.crm.client;
> import java.util.ArrayList;
> import com.google.gwt.user.client.rpc.AsyncCallback;
>
> public interface GreetingServiceAsync {
>   void greetServer(ArrayList<Model> modelList, AsyncCallback<String>
> callback);}
>
> ---------------------------------------------
> package com.tsolution.crm.server;
>
> import java.util.ArrayList;
> import com.tsolution.crm.client.GreetingService;
> import com.tsolution.crm.client.Model;
> import com.google.gwt.user.server.rpc.RemoteServiceServlet;
>
> public class GreetingServiceImpl extends RemoteServiceServlet implements
>         GreetingService
> {
>
>     public String greetServer(ArrayList<Model> modelList)
>     {
>                 return modelList.get(0).getDesc();
>     }
>
> }
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to