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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---