Hi All !

It looks like there is a problem in "Retrieving JSON Data" GWT
tutorial.
The JsonStockData servlet that generates random stock data
appends extra comma sign after the last StockData object
[ {...}, {...}, {...}, ]
which results in javascript error on IE7 while processing data in

private void updateTable(StockPrice price)
{
    if(!stocks.contains(price.getSymbol()))
                return;
    int row= stocks.indexOf(price.getSymbol())+1;
...
}

It seams that IE is creating extra array element, which in
this case is not a correct object.
Needless to say that breaks other things, for example
the "Last updated" label doesn't show.

So avoid this extra comma sign in JSON arrays.

--
WAF

--~--~---------~--~----~------------~-------~--~----~
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-Toolkit@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