Hi there,

I'm currently writing an application which fetches Data from an DB2
Database. I've got a very basic question opn returning values from
RPC....


Here's the method, which calls the RPC:
public int loginUser(String user, String passwd, boolean override){
  loginFeedback = -1;
  XGENgwt.loginUser(user, passwd, override, new AsyncCallback(){
    public void onSuccess(Object result){
      loginFeedback = Integer.parseInt(result.toString());
    }
    public void onFailure (Throwable caught){
Window.alert("Unable to login: "+caught.toString());
                }
          });
          logToServer("Bei der Zuweisung: "+loginFeedback);
          return loginFeedback;
        }

-- 
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-tool...@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