Well, there's always AttributeModifier.

WebMarkupContainer wmc = new WebMarkupContainer("imgLabel");
wmc.add(new AttributeModifier("src", "http://absoluteurl....");
add(wmc);

On Mon, 2006-11-06 at 12:16 -0800, ryan mckinley wrote:
Hello-

How do you set the src attribute on an image?  The examples are great if I want to load an image from a local resource, but how would i set the source to an absolute URL (on another server?)

The options I see are:

1) extend Resource...
2) add an html label:

  Label imgLabel = new Label("imgLabel", "<img src="" href="http://absoluteurl...\">http://absoluteurl...\" />");
  imgLabel.setEscapeModelStrings(false);
  add(imgLabel);

neither seems like the right choice for such a straightforward task... 

Thanks again
Ryan


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Philip A. Chapman

Desktop and Web Application Development:
Java, .NET, PostgreSQL, MySQL, MSSQL
Linux, Windows 2000, Windows XP

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to