This is what we use. It's mostly code that Igor posted in a response
to me 1 year ago or so...
public class StaticImage extends WebComponent
{
public StaticImage(String id, IModel model)
{
super(id, model);
}
public StaticImage(String id, String url)
{
this(id, new Model(url));
}
public StaticImage(String id)
{
super(id);
}
protected void onComponentTag(ComponentTag tag)
{
checkComponentTag(tag, "img");
super.onComponentTag(tag);
tag.put("src", getModelObjectAsString());
}
}
On Mon, Jan 19, 2009 at 9:15 AM, Prag <[email protected]> wrote:
>
> I have a DB table that contains plain URL's in text like
> http://someExternalServer/blabla/1.jpg.
>
> How can I put this plain text URL in a HTML IMG elements' SRC attribute
> without Wicket making modifications to the URL?
> --
> View this message in context:
> http://www.nabble.com/Plain-IMG-src-urls-tp21547371p21547371.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]