Re: what's wrong here?

2009-04-20 Thread Sumit Chandel
Hi Alex,
I haven't looked at the code yet, but just to be clear, what is it that's
going wrong? Are you trying to compile the application, or run it in hosted
mode?

For whichever case that is failing, how are you trying to compile / run the
application in hosted mode?

In general, being as detailed as possible in both the thread title and body
will help others understand your issue and provide pointers to help you out.

Regards,
-Sumit Chandel

On Sun, Apr 19, 2009 at 6:25 PM, Alex Luya  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 callback=new AsyncCallback(){
>public void onFailure(Throwable caught)
>{
>}
>
>public void onSuccess(String result)
>{
>Window.alert(result);
>}
>};
>
>ArrayList modelList=new ArrayList();
>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 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 modelList, AsyncCallback
> 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 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
-~--~~~~--~~--~--~---



Re: what's wrong here?

2009-04-19 Thread Alex Luya

That is it,Sorry,I forgot it .
Vagner Araujo a écrit :
> Hi friends,
>
> try now.
>
>
> package com.tsolution.crm.client;
>
> import java.io.Serializable;
>
>
> public class Model implements Serializable {
>
>   private static final long serialVersionUID = 5693662550097196303L;
>
>   private String desc;
>
>   public String getDesc() {
>   return desc;
>   }//end getDesc
>
>   public void setDesc(String desc) {
>   this.desc = desc;
>   }//end setDesc
>
> }//end class
>
>
> //SERVICE CLASS
>
> 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 modelList);
>  String greetServer1(String modelList);
> }//end interface
>
>
> package com.tsolution.crm.client;
> import java.util.ArrayList;
> import com.google.gwt.user.client.rpc.AsyncCallback;
>
> public interface GreetingServiceAsync {
>
>   void greetServer(ArrayList modelList, AsyncCallback
>   callback);
>
>   void greetServer1(String modelList, AsyncCallback
> asyncCallback);
> }//end interface
>
>
>
> 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 {
>
>   private static final long serialVersionUID = 1L;
>
>   @Override
>   public String greetServer(ArrayList modelList) {
>   return modelList.get(0).getDesc();
>   }//end greetServer(ArrayList modelList)
>
>   @Override
>   public String greetServer1(String modelList) {
>   return null;
>   }//end greetServer1(String modelList)
> }//end class
>
>
> public void onModuleLoad() {
>
>   GreetingServiceAsync greetingServiceAsync = GWT
>   .create(GreetingService.class);
>
>   Model m1 = new Model();
>   m1.setDesc("Hello");
>
>   AsyncCallback callback = new AsyncCallback() {
>   public void onFailure(Throwable caught) {
>   }
>
>   public void onSuccess(String result) {
>   Window.alert(result);
>   }
>   };
>
>   ArrayList modelList = new ArrayList();
>   modelList.add(m1);
>
>   greetingServiceAsync.greetServer(modelList, callback);
>
> }//end onModuleLoad
>
>
> Vagner Araujo
> Java + Vagner = Javagner
> >
>
>   


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



what's wrong here?

2009-04-19 Thread Alex Luya

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 callback=new AsyncCallback(){
public void onFailure(Throwable caught)
{
}

public void onSuccess(String result)
{
Window.alert(result);
}
};
   
ArrayList modelList=new ArrayList();
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 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 modelList, AsyncCallback 
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 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
-~--~~~~--~~--~--~---



Re: what's wrong here?

2009-04-19 Thread Vagner Araujo

Hi friends,

try now.


package com.tsolution.crm.client;

import java.io.Serializable;


public class Model implements Serializable {

private static final long serialVersionUID = 5693662550097196303L;

private String desc;

public String getDesc() {
return desc;
}//end getDesc

public void setDesc(String desc) {
this.desc = desc;
}//end setDesc

}//end class


//SERVICE CLASS

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 modelList);
 String greetServer1(String modelList);
}//end interface


package com.tsolution.crm.client;
import java.util.ArrayList;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface GreetingServiceAsync {

void greetServer(ArrayList modelList, AsyncCallback
callback);

void greetServer1(String modelList, AsyncCallback
asyncCallback);
}//end interface



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 {

private static final long serialVersionUID = 1L;

@Override
public String greetServer(ArrayList modelList) {
return modelList.get(0).getDesc();
}//end greetServer(ArrayList modelList)

@Override
public String greetServer1(String modelList) {
return null;
}//end greetServer1(String modelList)
}//end class


public void onModuleLoad() {

GreetingServiceAsync greetingServiceAsync = GWT
.create(GreetingService.class);

Model m1 = new Model();
m1.setDesc("Hello");

AsyncCallback callback = new AsyncCallback() {
public void onFailure(Throwable caught) {
}

public void onSuccess(String result) {
Window.alert(result);
}
};

ArrayList modelList = new ArrayList();
modelList.add(m1);

greetingServiceAsync.greetServer(modelList, callback);

}//end onModuleLoad


Vagner Araujo
Java + Vagner = Javagner
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: what's wrong here?

2009-04-19 Thread Salvador Diaz

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  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 callback=new AsyncCallback(){
>             public void onFailure(Throwable caught)
>             {
>             }
>
>             public void onSuccess(String result)
>             {
>                 Window.alert(result);
>             }
>         };
>
>         ArrayList modelList=new ArrayList();
>         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 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 modelList, AsyncCallback
> 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 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
-~--~~~~--~~--~--~---



what's wrong here?

2009-04-19 Thread Alex Luya

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 callback=new AsyncCallback(){
public void onFailure(Throwable caught)
{
}

public void onSuccess(String result)
{
Window.alert(result);
}
};
   
ArrayList modelList=new ArrayList();
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 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 modelList, AsyncCallback 
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 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
-~--~~~~--~~--~--~---