<g:cell> can only contain HTML. Use <g:customCell> to add a widget.
In your case, I wonder why you don't use a g:Image widget rather than a
g:Label with some styling.
On Monday, June 11, 2012 12:52:54 PM UTC+2, arian wrote:
>
> I am trying to add an image to a grid column in Ui Binder and get the
> following message.
>
> [ERROR] Not allowed in an HTML context Element
>
> <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
> xmlns:g="urn:import:com.google.gwt.user.client.ui"
> xmlns:mcmui="urn:import:com.equillore.mcmexternal.client.ui">
> <ui:image field="requiredImage" src="images/
> required_indicator.gif"/>
>
> <ui:style type =
> "com.equillore.mcmexternal.client.view.StandardDocumentDownloadView.myStyle">
>
>
>
>
> .required
>
> {
> gwt-image: 'requiredImage';
> font-weight:bold;
> width: 7px;
> height: 14px;
> }
>
> and this is the grid cell.
>
> <g:cell><g:Label addStyleNames="{style.required}"/></g:cell>
>
> Any help perhaps...please
>
> regards
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/dR2lGapXe5oJ.
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.