You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by wch2001 <wc...@hotmail.com> on 2008/10/10 10:48:05 UTC
Hi, How to set one url(www.cnn.com..../abc.gif) to Image
Dear all,
I want to show Image based on one url like www.cnn.com..../abc.gif, the
string is in pictureLocation,
i mean pictureLocation = "www.cnn.com..../abc.gif".
how can I do with Image.
Image image = new Image("image");
ResourceReference ref = new ResourceReference(pictureLocation);
image.setImageResource(new Resource() {
@Override
public IResourceStream getResourceStream() {
throw new UnsupportedOperationException("Not supported
yet.");
}
});
thanks a lot,
--
View this message in context: http://www.nabble.com/Hi%2C-How-to-set-one-url%28www.cnn.com....-abc.gif%29-to-Image-tp19914379p19914379.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Hi, How to set one url(www.cnn.com..../abc.gif) to Image
Posted by Michael Sparer <mi...@gmx.at>.
http://cwiki.apache.org/WICKET/how-to-load-an-external-image.html
regards,
Michael
wch2001 wrote:
>
> Dear all,
>
> I want to show Image based on one url like www.cnn.com..../abc.gif, the
> string is in pictureLocation,
> i mean pictureLocation = "www.cnn.com..../abc.gif".
>
> how can I do with Image.
>
> Image image = new Image("image");
>
> ResourceReference ref = new ResourceReference(pictureLocation);
> image.setImageResource(new Resource() {
>
> @Override
> public IResourceStream getResourceStream() {
>
> throw new UnsupportedOperationException("Not supported
> yet.");
> }
> });
>
> thanks a lot,
>
>
>
>
-----
Michael Sparer
http://talk-on-tech.blogspot.com
--
View this message in context: http://www.nabble.com/Hi%2C-How-to-set-one-url%28www.cnn.com....-abc.gif%29-to-Image-tp19914379p19915001.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Hi, How to set one url(www.cnn.com..../abc.gif) to Image
Posted by wch2001 <wc...@hotmail.com>.
it works well, thanks you very much
wch2001 wrote:
>
> Dear all,
>
> I want to show Image based on one url like www.cnn.com..../abc.gif, the
> string is in pictureLocation,
> i mean pictureLocation = "www.cnn.com..../abc.gif".
>
> how can I do with Image.
>
> Image image = new Image("image");
>
> ResourceReference ref = new ResourceReference(pictureLocation);
> image.setImageResource(new Resource() {
>
> @Override
> public IResourceStream getResourceStream() {
>
> throw new UnsupportedOperationException("Not supported
> yet.");
> }
> });
>
> thanks a lot,
>
>
>
>
--
View this message in context: http://www.nabble.com/Hi%2C-How-to-set-one-url%28www.cnn.com....-abc.gif%29-to-Image-tp19914379p19915373.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org