On Thursday, January 6, 2011 2:23:04 PM UTC+1, Noor wrote:
>
> I am becoming almost mad with the GWT Cookies, 
>
> in one of my application I set the cookie in an RPC success, but I am 
> trying to retrieve it in another place of my application, it returns 
> null. 
>
> I know that when setting a variable in an rpc sucess,if we try to 
> access it elsewhere it result null, so how can i set a cookie an rpc 
> so that it does not returns null??
>

If you're referring to the fact that the RPC call is asynchronous (so the 
onSuccess will always be called "later", never before the RPC method returns 
to your code), then using cookies won'thelp (the onSuccess still happens 
after, so you're still trying to read the result of something that hasn't 
yet happened).

See https://groups.google.com/d/msg/google-web-toolkit/-soVdfMGug8/vRmqIcAZ5zsJ

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

Reply via email to