Widget problem...

Hi all,

I have a problem with regards to Widgets.

I have created my own widget which draws a line graph.
I have successfully created the application class, the server-side component, the vaadin integration widget & the actual GWT widget.

I get the some newly generated
x & y coordinates
as a collection from another Thread & I intend to pass that collection to the GWT widget. Once I get that collection inside my GWT widget, I can draw the graph without any problem. How can I achieve this.?

Any help is greatly appreciated.

Thanks in advance,
Asela.

Your server side component needs to override the paintContent() method, and send the coordinate data to the client side widget as variables. For an example see the
relevant section in the Book of Vaadin
.

After this your client side widget can read the data in the updateFromUIDL() which you have probably already overridden using uidl.getStringVariable().

A more comprehensive example can be found
in the book
.

Hi Henri,

Thanks for the prompt reply & it helped me to solve my problem.
Thanks again. :slight_smile:

Cheers,
Asela.