Returning values from RPC-Call

2010-06-08 Thread uwi_u
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;

Returning values, next try. Sending was too fast for me

2010-06-08 Thread uwi_u
Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global variable. Unfortunately, the returning of this global variable out of the method happens before the onSuccess comes back.

Re: Returning values, next try. Sending was too fast for me

2010-06-09 Thread uwi_u
LoginCallback to call from the onFailure. Take the code that currently follows the call to your loginUser method and move it into the onLogin method of an instance of LoginCallback that gets passed to the new loginUser method. Think Async! ;-) HTH, Chad On Jun 8, 8:07 am, uwi_u uwe.chris

Re: Returning values, next try. Sending was too fast for me

2010-06-11 Thread uwi_u
to continue with in onSuccess Stefan Bacherthttp://gwtworld.de On Jun 8, 3:07 pm, uwi_u uwe.chris...@gad.de wrote: Hi there, I'm currently writing an Application with GWT, and am Stuck at one position: When I call my RPC, the value which is to be returned, will be passed to an global

Failure creating a timer in ServerImplementation

2010-06-15 Thread uwi_u
Hi! I'm writing an application which starts a new timer for each user logging in. I'm storing the timers in a HashMap for easy access. A KeepAlive from Client will get the timer out of the Hashmap and reset it. But when executing Timer t = new Timer(){}, the method crashes. Can somebody tell

Re: Failure creating a timer in ServerImplementation

2010-06-15 Thread uwi_u
A. I guess it's the following: I included com.google.gwt.user.client.Timer instead of java.util.Timer... could this be the reason? On 15 Jun., 16:25, uwi_u uwe.chris...@gad.de wrote: Hi! I'm writing an application which starts a new timer for each user logging in. I'm storing

Re: Failure creating a timer in ServerImplementation

2010-06-16 Thread uwi_u
It indeed was the reason. No GWT-Client-Code in ServerImplementation. Sounds sane ;-) On 15 Jun., 16:39, uwi_u uwe.chris...@gad.de wrote: A. I guess it's the following: I included com.google.gwt.user.client.Timer instead of java.util.Timer... could this be the reason? On 15 Jun., 16:25