On 6/21/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> Yep. Or alternatively, use attribute modifiers:
>
> WebMarkupContainer c = new WebMarkupContainer("myimage");
> c.add(new SimpleAttributeModifier("src",
> "http://images.apple.com/macbook/images/macbookglossydisplay20060516.jpg"));
> add(c);
>
> or
>
> public class ExternalImage extends WebMarkupContainer {
>
> public ExternalImage(String id, IModel model) {
> add(new AttributeModifier("src", true, model));
> }
> }
That last one is so short and elegant. Not fair! :-)
S.
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user