Hi I am trying to use uibinder to add an image in my web page using
clientbundle. Following the paradigm "Using an external resource" of
the documentation "Declarative Layout with UiBinder", I wrote the
following:

        <ui:with field='res'
type='xel.villaView1.client.villaViewClientBundle'/>
        <g:DockLayoutPanel unit='EM'>
                  <g:north size='14'>
                    <g:HTMLPanel>
                      <div class="titleblock">
                                <div id="logo"><img 
src="/images/dolphin.gif"/></div>
                                        <div id="langMenu"><g:Image 
resource="res.bedroom" ></g:Image> </
div>
                                        <h1 id="mainTitle"><ui:msg 
description="Main Title">Main title</
ui:msg></h1>
                      </div>
                    </g:HTMLPanel>

I have created a clientbundle using eclipse,

public interface villaViewClientBundle extends ClientBundle {

        static villaViewClientBundle INSTANCE =
GWT.create(villaViewClientBundle.class);

        ImageResource el();

        @Source("xel/villaView1/client/design/images/photos/bedroom.jpg")
        ImageResource bathroom();

}
 but when I run it, I am getting the following message:
 Cannot parse value: "res.bedroom" as type ImageResource
What do you think?

-- 
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