Glad its working. Do you mind filing an issue for this? On Tue, Apr 6, 2010 at 12:42 PM, Dan Dumont <[email protected]> wrote:
> It was a scoping problem. I needed to use a closure in the native js > method to wrap the callback, because even though passing the function ref > works in js, to run in java it needs the context. > > It would be cool if the documentation explicitly called that out because i > didn't realize gwt would barf like that in developer mode. It does make > sense now though. > > On Tue, Apr 6, 2010 at 10:47 AM, Rajeev Dayal <[email protected]> wrote: > >> Hi, >> >> Are you sure the callback is not firing in development mode, or is the >> breakpoint not being hit? If the breakpoint is not being hit, you may be >> running into this issue (if you're using hotswap): >> >> http://code.google.com/p/google-web-toolkit/issues/detail?id=4704 >> >> If you're not actually getting the callback to fire in development mode, >> can you paste a code snippet that shows what you're doing? >> >> >> Thanks, >> Rajeev >> >> >> On Fri, Apr 2, 2010 at 5:07 PM, Dan <[email protected]> wrote: >> >>> I'm having a similar problem though the only place breakpoints don't >>> seem to work is in my AsyncCallback. >>> >>> I see no errors in firebug or anywhere in eclipse. >>> >>> The method that accepts the callback is a native js method. the js >>> calls the callback onSuccess. >>> With compiled code, I can see this actually works, but running in >>> development mode, i cannot get the callback to fire at all. >>> >>> please advise. >>> >>> On Mar 3, 12:01 pm, Rajeev Dayal <[email protected]> wrote: >>> > Glad you got it working. If you wouldn't mind, could you file a bug for >>> > this? Provide details about your Eclipse version, JDK version, and OS. >>> > >>> > >>> > >>> > On Tue, Mar 2, 2010 at 6:17 PM, urbanus <[email protected]> wrote: >>> > > On Feb 10, 2:53 am, Rajeev Dayal <[email protected]> wrote: >>> > > > Try upgrading your JDK and see if you still experience the problem. >>> > >>> > > Actually I found the problem. I was setting the breakpoint on the >>> > > method definition line, i.e.: >>> > >>> > > public void onSuccess(String result) { >>> > >>> > > Those breakpoints never hit. If I place breakpoints on any lines >>> > > *within* that method, they hit just fine. >>> > >>> > > Note that under normal circumstances if you put a breakpoint on a >>> > > method line, execution will break at the immediately following line. >>> > > It seems that client-side asynchronous GWT code doesn't behave that >>> > > way. I wouldn't consider this to be a serious issue: just something >>> > > to be aware of. >>> > >>> > > Thanks for your advice. >>> > >>> > > Dave >>> > >>> > > -- >>> > > 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]<google-web-toolkit%[email protected]><google-web-toolkit%2Bunsubs >>> [email protected]> >>> > > . >>> > > For more options, visit this group at >>> > >http://groups.google.com/group/google-web-toolkit?hl=en. >>> >>> -- >>> 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]<google-web-toolkit%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >>> >> -- >> 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]<google-web-toolkit%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > 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]<google-web-toolkit%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- 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.
