Hello,

I am facing pretty much the same problem and I thought of using the
g:Image tag but the thing is that I don't knot how many pictures I
will receive (It's a gallery), and AFAIK there is no iteration
mechanism in UI:Binder, so the only option is to manually manage this
in Java code, right?

On 3 Cze, 23:57, Thomas Broyer <[email protected]> wrote:
> On 3 juin, 16:52, cody <[email protected]> wrote:
>
> > Hi,
>
> > Below line is to declare a static a image 'default_photo.jpg' into
> > 'photo' field
>
> > <ui:image field='photo' src='default_photo.jpg'/>
>
> > So how do I declare a dynamic image which will generated from server
> > side?
>
> ui:image declares an ImageResource, which must be known at compile-
> time (to be "@sprite-able" for instance).
>
> Maybe you're just looking for <img ui:field='photo' alt='Er...' /> and
> then photo.setSrc(urlOnTheServer) or <g:Image ui:field='photo'
> altText='Er...' /> and then photo.setUrl(urlOnTheServer)

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