ng HTML in your Java code. Then your links are
> actually in your HTML (except the SRC which gets generated in code) and
> your
> designers can stylize the links etc. Much better IMHO.
>
> [...]
>
--
View this message in context:
http://www.nabble.com/Dynamically-generating-a
Or use a WebMarkupContainer and an AttributeModifier. Wrap this in your own
class so you're not writing HTML in your Java code. Then your links are
actually in your HTML (except the SRC which gets generated in code) and your
designers can stylize the links etc. Much better IMHO.
Something like:
ould be displayed.
>
> Is there a simple way to do something like this?
>
> Thanks so much,
>
> Cristina
>
>
--
View this message in context:
http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190506.html
Sent from the Wicket - User mailing list ar
Hi Cristina,
> Java:
>
> // prefix and sufix hold the start and end of the img tag
> String imgTag = prefix + getImgURL() + sufix;
> add(new Label("imgDisplay", imgTag));
try:
add(new Label("imgDisplay", imgTag).setEscapeModelStrings(false));
Best regards,
all I've got is the URL displayed as a literal where
the image should be displayed.
Is there a simple way to do something like this?
Thanks so much,
Cristina
--
View this message in context:
http://www.nabble.com/Dynamically-generating-an-img-tag-tp21190259p21190259.html
Sent from