Re: Image widget not attached?

2013-05-02 Thread brec
Here is a summary of the solution in case it helps anyone. Because I had chosen to implement the image code within a second pseudo-widget (...extends Composite) that shared my UiBinder template with the main pseudo-widget that implements most of my app's UI, I got into trouble. I neglected to ad

Re: Image widget not attached?

2013-04-30 Thread brec
On Tuesday, April 30, 2013 9:02:42 AM UTC-7, I wrote: > > ...how is it different from an HTML element? ... > Well, one important difference is there is no such HTML element! But, more seriously, I'm guessing that has to do with a resource of an existing image, and isn't useful in my case of an

Re: Image widget not attached?

2013-04-30 Thread brec
I removed the g:Image element from the UiBinder template and tried creating it in code, thus: Image myImage; ... > myImage = new Image(url, 0, 0, width, height); > myHTMLPanel.add(myImage, myView); > This does not generate access to the URL (per FireBug, no network activity is generated). A

Re: Image widget not attached?

2013-04-30 Thread brec
There is only a passing mention of "ui:image" in https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder; it and "ui:data" are called "resource elements." (Is there some place where I can find a list of and specification of the elements in the "ui" namespace?) In your > > what

Re: Image widget not attached?

2013-04-30 Thread Thad
I don't think I've tried gwt-Image, but I have used and an @sprite in CSS. See https://code.google.com/p/google-web-toolkit/source/browse/releases/2.5/samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.ui.xml and other files in sample/Mail On Tuesday, April 30, 2013 6:02:03 AM UTC

Image widget not attached?

2013-04-30 Thread brec
UiBinder template extract: > > > addStyleNames='{style.close-button}'> > > > > The div's container is the HTMLPanel at the root of the template. @UiField Image myImage; > ... > myImage.setUrlAndVis