Re: Dynamically generating an img tag

2008-12-28 Thread Cristina
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

Re: Dynamically generating an img tag

2008-12-28 Thread Jeremy Thomerson
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:

Re: Dynamically generating an img tag

2008-12-27 Thread Jonathan Locke
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

Re: Dynamically generating an img tag

2008-12-27 Thread Jan Kriesten
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,

Dynamically generating an img tag

2008-12-27 Thread Cristina
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