I have a weird problem with the Google Visualization API and GWT.
I am using a MVP Package (gwtp) to create an application. Basically I
have two presenters and views respectively.

One view/presenter displays as static text and the other one displays
as PieChart (google-vis-api).
As soon as the presenter with the Piechart is revealed a DataTable
with some test data is created and passed to the draw method of the
Piechart.
This works without any problems. The piechart is displayed just fine.
However as soon as I navigate away from the pie chart presenter to the
static text presenter and then back to the Piechart presenter
(thus creating again a DataTable and calling the draw method) I get an
visualization error ("a is null").

if I do a hard refresh (F5) the Piechart works again.
The same applies if I recreate the Piechart instance as soon as I
display the Piechart page.


I suspect that there is a problem when detaching and re-attaching  the
DOM-container of the visualization widget so that calling draw on the
datatable I somewhere get the error "a is null".

I have attached a sample GWT application (which should contain all
necessary libs) which let's you reproduce the problem.

I have tried to debug it but because the visualization code is
obfuscated i didn't get far. As far as I could there seems to be a
problem somewhere in the setSelection function.

Maybe someone has an idea what might be the problem

Cheers

Thanks in advance

Uemit

P.S.: http://rapidshare.com/files/423663096/gwtpvisualizationsample.zip

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" 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-visualization-api?hl=en.

Reply via email to