I ran into this problem too.  It looks like there is some caching
going on so that repeated requests with the same list of stocks will
return cached results.  I was able to fix this by adding the following
code to the top of the doGet method in JsonStockData:


  if (req.getProtocol().compareTo("HTTP/1.0") == 0) {
    resp.setHeader("Pragma", "no-cache");
  } else if (req.getProtocol().compareTo("HTTP/1.1") == 0) {
    resp.setHeader("Cache-Control", "no-cache");
  }
  resp.setDateHeader("Expires", 0);


On Dec 5, 8:10 am, TalkinJive <gerald.duques...@gmail.com> wrote:
> Hi,
>
> I'm new with GWT. I'm trying JSON with Stockwatcher application (with
> servlet, overlay type and RequestBuilder). I've fixed the coma problem
> in theJsonStockDataservlet.
>
> When I add or remove an item, method refreshWatchList 
> callJsonStockDataservlet and everything is OK.
> BUT when the timer call refreshWatchList, the servlet is not called
> and the Response is always the same. So the prices don't change. No
> exception is throwed !
>
> I've found the same problem here 
> :http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> Have I done an error ?
> Is there a bug in Stockwatcher JSON tutorial ?
> or a bug in GWT ?
> Could you help me to fix that please ?
>
> Gérald.

--

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