yugalatea / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

problem in Google Visualization Gauge widgets using with GWT and timer concepts #225

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
gwt-visualization.jar(1.0)
gwt-windows1.5.XX

Detailed description:
i am using GWT  in my current project i have to display some values using
Gauge periodically . for that i used Timer class to get the actual value
from my database to be displayed in gauge  and i created a gauge by using
the visualization plug in for GWT(gwt-visualization.jar 1.0) and i call
that gauge creation method within the timer

initially gauge is displaying the values by getting the values from
database. after for few seconds(10-15 sec) the gauge is invisible and not
displayed inside the tabpanel. But i steadily get the value from the database .

 i dont know the reason please send me the feedback and the comments

here is my code

(Gauge creation method)

private Widget createGauge(int s) {

     DataTable data = DataTable.create();

     data.addColumn(ColumnType.STRING, "Label");
     data.addColumn(ColumnType.NUMBER, "Value");
     data.addRows(1);
     data.setValue(0, 0, "CPU(%)");
     data.setValue(0, 1, s);
     Gauge.Options option = Gauge.Options.create();

     option.setHeight(500);
     option.setWidth(400);
     option.setGreenRange(71, 80);
     option.setMinorTicks(10);
     option.setRedRange(81, 100);
     option.setYellowRange(61, 70);

     return new Gauge(data, option);
     }

i call this within the timer and also the parameter int s. 

Original issue reported on code.google.com by saranparis on 17 Dec 2008 at 4:40

GoogleCodeExporter commented 9 years ago
This was previously posted in the GWT contributors forum

http://groups.google.com/group/Google-Web-Toolkit-
Contributors/browse_thread/thread/786c248dfbad711e

What did the Visualization folks have to say about this issue?

Original comment by galgwt.reviews@gmail.com on 17 Dec 2008 at 11:37

GoogleCodeExporter commented 9 years ago
I have not been able to reproduce this.  I will attach the code that I tried, 
which
works fine, at least on Firefox (Linux).  What browser do you see the problem 
in?

Original comment by daniel.l...@gmail.com on 17 Dec 2008 at 2:33

Attachments:

GoogleCodeExporter commented 9 years ago
hey thanks for the reply .
i attached my problem . please look at these and will helpfull for u to help me 
.
please send response asap. 

Original comment by saranparis on 18 Dec 2008 at 6:58

Attachments:

GoogleCodeExporter commented 9 years ago
sorry .if i use firefox, ur code works fine . and also my code works fine too 
:-)
but why there is a problem while using with IE browser. when i try to run my 
code in
shell scriped mode the same problem, the gauge is disappeared in few seconds . 
why ??

Original comment by saranparis on 18 Dec 2008 at 7:22

GoogleCodeExporter commented 9 years ago
it seems that this problem only appears in Internet Explorer, using Gauge (not 
other
visualizations), Timer, and TabPanel.  I am continuing to investigate. 
Meanwhile, is
it possible that you could use the Gauge without the TabPanel, for example, 
with the
Tree?

Original comment by daniel.l...@gmail.com on 18 Dec 2008 at 3:44

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
not only in InternetExploreer browser but also in, when i try to run my program 
in
shell scripted mode (by running with eclipse IDE (by clicking on run button)   
hope u
will get it) of GWT. i dont know why????? 

yes i can but the same problem occurs, when i try to add gauge directly to 
Rootpanel.
after few seconds the gauge disappears.. let me try by using with tree and will 
let u
know the feedback.

another one problem 
---------------------
my gwt application :- Main.java

when i try to double click by application batch file ==Main-shell.cmd
the following errors is occured

[TRACE] Loading module 'com.apscope.Main'
[TRACE] Loading inherited module 'com.google.gwt.visualization.Visualization'
[ERROR] Unable to find 'com/google/gwt/visualization/Visualization.gwt.xml' on 
your
classpath; could be a typo, or maybe you forgot to include a classpath entry 
for source?
[ERROR] Line 5: Unexpected exception while processing element 'inherits'
[ERROR] Failure while parsing XML

i dont know why ?????? i done all my work to run my projects correctly. still 
this is
the problem 

but when i run by program by clicking run button in eclipse . it works 
perfectly.. 

why this problem tell me a suggestion please .... 

waiting for ur reply
cheers
saran

Original comment by saranparis on 19 Dec 2008 at 4:34

GoogleCodeExporter commented 9 years ago
daniel

what happened to the gauge problem issue (225). am waiting for ur soultion

Original comment by saranparis on 6 Jan 2009 at 9:21