How to display data in GWT?

8 views
Skip to first unread message

Dave

unread,
Sep 24, 2006, 9:06:43 PM9/24/06
to Google Web Toolkit
Hello, I have a newbie question to ask. Is there a function to display
data on a panel? I am not sure how to display data on the panel, I am
grabbing data from a database and I just want to be able to output it
on the webpage. Maybe somethng like textoutputpanel object in swing?
Any help is appreciated.

Adam T

unread,
Sep 25, 2006, 5:36:09 PM9/25/06
to Google Web Toolkit
If you just want a pure data dump then you can throw your data into a
TextArea widget or a Label or any of the widgets that display text,
e.g. if you have your data as a String you can just do the following:

TextArea dump = new TextArea();
dump.setText(your data);

If you want more formatting then you will have to look at "parsing"
your data and placing into more controlled UI objects, e.g. a number of
Labels in a HorizontalPanel perhaps.

Reply all
Reply to author
Forward
0 new messages