If you have to use dynamic images, then you have to ask the server for a proper image to display it with Image.

For example:
String avatarUrl = userProfile.getAvatarUrl(); // it may point to http://myserver.com/avatar?id=101
Image avatar = new Image(avatarUrl);

but if you want to use a static image resources, then you can take a look into http://code.google.com/p/google-web-toolkit/wiki/ImageResource.


Regards,
  Miroslav


On 06/19/2010 05:52 PM, seakey wrote:
Hi,

I would like to add some gwt-widgets (e.g. like images) to
PagingScrollTable from google-web-toolkit-incubator. If my
understanding of it is correct, there must be an attribute in my
object for each cell of a row. So, if want to have widgets in my
table, there must be an attribute for this widget, i.e. there must be
something like

public Image getImage() {
    return image;
}

public void setImage(Image image) {
    this.image = image;
}

in my class.
But now, if I intend to serialize it via RPC, I get a
SerializationException, because Image isn't serializable.

So, isn't it possible, to add widgets to PagingScrollTable (with RPC-
stuff)? Or is there another way to do this?


--
You received this message because you are subscribed to the Google Groups "Google 
Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to