Monday, October 31, 2011

Re: LayoutPanel - how to set background image?

In Uibinder specify your image on src attribute of <ui:image> tag,
Inside the <ui:style> attribute specify your @sprite.backgroundPicture
tag. Try the below example.

S. Abraham
Persist objects directly in Google App Engine

<?xml version="1.0" encoding="UTF-8"?>
<ui:UiBinder xmlns:ui=''>

<ui:image field='backgroundPicture' src='easyxbrl_logo_1.png' />

@sprite .backgroundPicture {
gwt-image: 'backgroundPicture';
float: left;
margin-left: 50px;

<g:LayoutPanel styleName="{style.backgroundPicture}"/>

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment